diff --git a/src/clients/swaync/mod.rs b/src/clients/swaync/mod.rs index 495040b7..9b5c1161 100644 --- a/src/clients/swaync/mod.rs +++ b/src/clients/swaync/mod.rs @@ -10,11 +10,12 @@ use zbus::export::ordered_stream::OrderedStreamExt; use zbus::zvariant::Type; #[derive(Debug, Clone, Copy, Type, Deserialize)] +#[allow(dead_code)] pub struct Event { pub count: u32, pub dnd: bool, pub cc_open: bool, - // pub inhibited: bool, + pub inhibited: bool, } type GetSubscribeData = (bool, bool, u32, bool); @@ -22,12 +23,12 @@ type GetSubscribeData = (bool, bool, u32, bool); /// Converts the data returned from /// `get_subscribe_data` into an event for convenience. impl From for Event { - fn from((dnd, cc_open, count, _inhibited): (bool, bool, u32, bool)) -> Self { + fn from((dnd, cc_open, count, inhibited): (bool, bool, u32, bool)) -> Self { Self { count, dnd, cc_open, - // inhibited, + inhibited, } } }