mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-03 03:31:03 +02:00
refactor: fix casting based clippy warnings
This commit is contained in:
parent
bea442ed96
commit
e847a84c21
3 changed files with 4 additions and 4 deletions
|
@ -244,7 +244,7 @@ impl MusicClient for Client {
|
|||
|
||||
fn set_volume_percent(&self, vol: u8) -> Result<()> {
|
||||
if let Some(player) = Self::get_player(self) {
|
||||
player.set_volume(vol as f64 / 100.0)?;
|
||||
player.set_volume(f64::from(vol) / 100.0)?;
|
||||
} else {
|
||||
error!("Could not find player");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue