From 70d254bbae26085cc4728806fe6071c5a8a2a799 Mon Sep 17 00:00:00 2001 From: Jan Luca Date: Mon, 22 Dec 2025 12:53:17 +0100 Subject: [PATCH] clean up --- upower/src/device.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/upower/src/device.rs b/upower/src/device.rs index 9154361..b889e2e 100644 --- a/upower/src/device.rs +++ b/upower/src/device.rs @@ -94,7 +94,7 @@ pub trait Device { fn charge_start_threshold(&self) -> zbus::Result; #[zbus(property)] - fn charge_threshold_enabled(&self) -> zbus::Result; + fn charge_threshold_enabled(&self) -> zbus::Result; #[zbus(property)] fn charge_threshold_settings_supported(&self) -> zbus::Result; @@ -183,13 +183,10 @@ pub trait Device { #[zbus(property)] fn voltage_min_design(&self) -> zbus::Result; + #[zbus(signal)] fn enable_charge_threshold(&self, message: bool) -> zbus::Result<()>; - - // #[zbus(signal)] - // fn enable_charge_threshold(&self, charge_threshold: bool) -> zbus::Result<()>; - #[zbus(signal)] fn get_history(&self, type_: String, timespan: u32, resolution: u32) -> zbus::Result>;