prefer lossless conversion to cast (clippy::cast_lossless)

This commit is contained in:
Daniel Eades 2024-04-15 20:44:25 +01:00 committed by Jeremy Soller
parent e3a0d8c6dd
commit 76d166b266
3 changed files with 18 additions and 18 deletions

View file

@ -322,7 +322,7 @@ impl Config {
}
pub fn opacity_ratio(&self) -> f32 {
(self.opacity as f32) / 100.0
f32::from(self.opacity) / 100.0
}
// Get a sorted and adjusted for duplicates list of profile names and ids