diff --git a/upower/src/device.rs b/upower/src/device.rs index e3b0f9f..fb5010f 100644 --- a/upower/src/device.rs +++ b/upower/src/device.rs @@ -132,7 +132,7 @@ pub trait Device { #[zbus(property)] fn is_rechargeable(&self) -> zbus::Result; - #[deprecated(since="0.3.2", note="deprecated since 0.99.12")] + #[deprecated(since = "0.3.2", note = "deprecated since 0.99.12")] #[zbus(property)] fn luminosity(&self) -> zbus::Result; @@ -186,12 +186,15 @@ pub trait Device { #[zbus(property)] fn voltage_max_design(&self) -> zbus::Result; - - fn get_history(&self, type_: String, timespan: u32, resolution: u32) -> zbus::Result>; + fn get_history( + &self, + type_: String, + timespan: u32, + resolution: u32, + ) -> zbus::Result>; fn get_statistics(&self, type_: String) -> zbus::Result>; - #[zbus(signal)] fn enable_charge_threshold(&self, message: bool) -> zbus::Result<()>;