Remove superfluous conversion
This commit is contained in:
parent
20290547f1
commit
7c037fef4c
1 changed files with 3 additions and 3 deletions
|
@ -107,10 +107,10 @@ fn icon_name(volume: Volume) -> String {
|
|||
}
|
||||
|
||||
fn notify_volume(new_volume: Volume) {
|
||||
let value = dbg!(match new_volume {
|
||||
let value = match new_volume {
|
||||
Volume::Muted => 0,
|
||||
Volume::Percent(new_volume) => volume_to_percent(new_volume),
|
||||
});
|
||||
Volume::Percent(new_volume) => new_volume,
|
||||
};
|
||||
Notification::new()
|
||||
.summary("Volume")
|
||||
.icon(icon_name(new_volume).as_str())
|
||||
|
|
Loading…
Reference in a new issue