Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
damster101 committed Oct 19, 2024
1 parent 467d05c commit a34e58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion av1an-core/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl Av1anContext {
});

if self.args.vmaf {
let vmaf_threads = available_parallelism().map_or(1, |p| p.get());
let vmaf_threads = available_parallelism().map_or(1, std::num::NonZero::get);

if let Err(e) = vmaf::plot(
self.args.output_file.as_ref(),
Expand Down

0 comments on commit a34e58e

Please sign in to comment.