Remove superfluous conversion

This commit is contained in:
Erwin Boskma 2021-11-24 15:36:16 +01:00
parent 20290547f1
commit 7c037fef4c
Signed by: erwin
GPG key ID: 270B20D17394F7E5

View file

@ -107,10 +107,10 @@ fn icon_name(volume: Volume) -> String {
} }
fn notify_volume(new_volume: Volume) { fn notify_volume(new_volume: Volume) {
let value = dbg!(match new_volume { let value = match new_volume {
Volume::Muted => 0, Volume::Muted => 0,
Volume::Percent(new_volume) => volume_to_percent(new_volume), Volume::Percent(new_volume) => new_volume,
}); };
Notification::new() Notification::new()
.summary("Volume") .summary("Volume")
.icon(icon_name(new_volume).as_str()) .icon(icon_name(new_volume).as_str())