clippy
This commit is contained in:
parent
6f925f9922
commit
f7033ffb5d
1 changed files with 3 additions and 2 deletions
|
@ -333,7 +333,7 @@ impl Player {
|
||||||
// FIXME: https://github.com/dbus2/zbus/issues/992
|
// FIXME: https://github.com/dbus2/zbus/issues/992
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
fn shuffle(&self) -> zbus::fdo::Result<bool> {
|
fn shuffle(&self) -> zbus::fdo::Result<bool> {
|
||||||
Err(zbus::fdo::Error::NotSupported("Shuffle".into()).into())
|
Err(zbus::fdo::Error::NotSupported("Shuffle".into()))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
|
@ -356,7 +356,8 @@ impl Player {
|
||||||
#[tracing::instrument(skip(self), parent = None, target = "audrey::mpris", level = Level::DEBUG, ret)]
|
#[tracing::instrument(skip(self), parent = None, target = "audrey::mpris", level = Level::DEBUG, ret)]
|
||||||
fn set_volume(&self, volume: f64) -> zbus::Result<()> {
|
fn set_volume(&self, volume: f64) -> zbus::Result<()> {
|
||||||
let corrected_volume = (volume.clamp(0.0, 1.0) * 100.0) as i64;
|
let corrected_volume = (volume.clamp(0.0, 1.0) * 100.0) as i64;
|
||||||
Ok(self.window().set_volume(corrected_volume))
|
self.window().set_volume(corrected_volume);
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[zbus(property(emits_changed_signal = "false"))]
|
#[zbus(property(emits_changed_signal = "false"))]
|
||||||
|
|
Loading…
Reference in a new issue