prefer lossless conversion to cast (clippy::cast_lossless)
This commit is contained in:
parent
e3a0d8c6dd
commit
76d166b266
3 changed files with 18 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue