Skip to content

Commit

Permalink
Janitor: Disable clippy error about f32 comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
hunger committed Jul 6, 2021
1 parent 4c6bb37 commit 40a3f23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sixtyfps_runtime/corelib/graphics/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ impl From<RgbaColor<f32>> for HsvaColor {
let max = red.max(green).max(blue);
let chroma = max - min;

#[allow(clippy::float_cmp)] // `max` is either `red`, `green` or `blue`
let hue = 60.
* if chroma == 0. {
0.0
Expand Down

0 comments on commit 40a3f23

Please sign in to comment.