From 0d3d049516b533272a26a78824120951e4349da5 Mon Sep 17 00:00:00 2001 From: Jan Luca Oster Date: Fri, 26 Dec 2025 10:22:58 +0100 Subject: [PATCH] cargo fmt --- upower/src/device.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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<()>;