From 54c7b63edf32951c2d5b24e2132b767309b58448 Mon Sep 17 00:00:00 2001 From: Jan Luca Date: Wed, 24 Dec 2025 14:31:09 +0100 Subject: [PATCH] fix up methods --- upower/src/device.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/upower/src/device.rs b/upower/src/device.rs index bea86fa..e3b0f9f 100644 --- a/upower/src/device.rs +++ b/upower/src/device.rs @@ -187,15 +187,14 @@ pub trait Device { fn voltage_max_design(&self) -> 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<()>; - #[zbus(signal)] - fn get_history(&self, type_: String, timespan: u32, resolution: u32) -> zbus::Result>; - - #[zbus(signal)] - fn get_statistics(&self, type_: String) -> zbus::Result<()>; - #[zbus(signal)] fn refresh(&self) -> zbus::Result<()>; }