1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 10:41:03 +02:00

build: fix clippy warning

This commit is contained in:
Jake Stanger 2024-06-20 20:59:08 +01:00
parent 7e04e30171
commit 51df2b766b
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -14,7 +14,7 @@ pub struct Event {
pub count: u32, pub count: u32,
pub dnd: bool, pub dnd: bool,
pub cc_open: bool, pub cc_open: bool,
pub inhibited: bool, // pub inhibited: bool,
} }
type GetSubscribeData = (bool, bool, u32, bool); type GetSubscribeData = (bool, bool, u32, bool);
@ -22,12 +22,12 @@ type GetSubscribeData = (bool, bool, u32, bool);
/// Converts the data returned from /// Converts the data returned from
/// `get_subscribe_data` into an event for convenience. /// `get_subscribe_data` into an event for convenience.
impl From<GetSubscribeData> for Event { impl From<GetSubscribeData> 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 { Self {
count, count,
dnd, dnd,
cc_open, cc_open,
inhibited, // inhibited,
} }
} }
} }