mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
fix all clippy lints and remove them from allow list in cranky (#2419)
* manual range contains clippy lint removed from allow list * removed multiple redundant allowed clippy lints
This commit is contained in:
@@ -100,7 +100,7 @@ fn fast_round(r: f32) -> u8 {
|
||||
pub fn test_srgba_conversion() {
|
||||
for b in 0..=255 {
|
||||
let l = linear_f32_from_gamma_u8(b);
|
||||
assert!(0.0 <= l && l <= 1.0);
|
||||
assert!((0.0..=1.0).contains(&l));
|
||||
assert_eq!(gamma_u8_from_linear_f32(l), b);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user