1
0
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:
Red Artist
2022-12-11 23:36:09 +05:30
committed by GitHub
parent 228f30ed46
commit 930ef2db38
5 changed files with 11 additions and 17 deletions

View File

@@ -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);
}
}