Skip to content

Commit

Permalink
Fix new clippy warnings (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon authored Aug 27, 2024
1 parent 0c3ec2f commit 8155e07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"
members = [
"av_metrics",
"av_metrics_tool",
Expand Down
2 changes: 1 addition & 1 deletion av_metrics/src/video/psnr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ fn calculate_plane_psnr_metrics<T: Pixel>(
}

fn calculate_psnr(metrics: PsnrMetrics) -> f64 {
if metrics.sq_err <= std::f64::EPSILON {
if metrics.sq_err <= f64::EPSILON {
return 100.0;
}
10.0 * ((metrics.sample_max.pow(2) as f64).log10() + (metrics.n_pixels as f64).log10()
Expand Down

0 comments on commit 8155e07

Please sign in to comment.