mirror of
https://github.com/JakeStanger/ironbar.git
synced 2024-10-03 17:57:31 +03:00
build: fix clippy warning
This commit is contained in:
parent
7e04e30171
commit
51df2b766b
@ -14,7 +14,7 @@ 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 +22,12 @@ type GetSubscribeData = (bool, bool, u32, bool);
|
||||
/// Converts the data returned from
|
||||
/// `get_subscribe_data` into an event for convenience.
|
||||
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 {
|
||||
count,
|
||||
dnd,
|
||||
cc_open,
|
||||
inhibited,
|
||||
// inhibited,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user