diff options
author | Canop <cano.petrole@gmail.com> | 2021-05-02 10:33:02 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-05-02 10:33:02 +0200 |
commit | 57277840522e463546476c0bda34314b9e9b2c21 (patch) | |
tree | 47948abdf30325fbb3b46d477764ba1806009d6d /src/filesystems/mod.rs | |
parent | 3f0aaec6f119ec7957bae56d883af04738d9f2ef (diff) |
spill some blood for the Clippy god
Diffstat (limited to 'src/filesystems/mod.rs')
-rw-r--r-- | src/filesystems/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filesystems/mod.rs b/src/filesystems/mod.rs index c12c473..fd6b148 100644 --- a/src/filesystems/mod.rs +++ b/src/filesystems/mod.rs @@ -38,7 +38,7 @@ static SHARE_COLORS: &[Color] = &[ ]; pub fn share_color(share: f64) -> Color { - debug_assert!(share >= 0.0 && share <= 1.0); + debug_assert!((0.0..=1.0).contains(&share)); let idx = (share * SHARE_COLORS.len() as f64) as usize; if idx >= SHARE_COLORS.len() { SHARE_COLORS[SHARE_COLORS.len() - 1] |