all: address clippy lints
This commit is contained in:
parent
a09e8bfbd3
commit
a2a04512ed
4 changed files with 5 additions and 6 deletions
|
|
@ -887,7 +887,7 @@ impl WlSeatGlobal {
|
|||
}
|
||||
{
|
||||
let mut bindings = self.bindings.borrow_mut();
|
||||
let bindings = bindings.entry(client.id).or_insert_with(Default::default);
|
||||
let bindings = bindings.entry(client.id).or_default();
|
||||
bindings.insert(id, obj.clone());
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ impl Session {
|
|||
LOGIND_NAME,
|
||||
&self.session_path,
|
||||
org::freedesktop::login1::session::TakeDevice { major, minor },
|
||||
move |r| f(r),
|
||||
f,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -122,7 +122,7 @@ impl Session {
|
|||
.handle_signal::<org::freedesktop::login1::session::PauseDevice, _>(
|
||||
Some(LOGIND_NAME),
|
||||
Some(&self.session_path),
|
||||
move |v| f(v),
|
||||
f,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
@ -154,7 +154,7 @@ impl Session {
|
|||
LOGIND_NAME,
|
||||
&self.seat,
|
||||
org::freedesktop::login1::seat::SwitchTo { vtnr },
|
||||
|r| f(r),
|
||||
f,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -736,7 +736,6 @@ impl ContainerNode {
|
|||
child.node.tl_set_visible(true);
|
||||
// log::info!("activate_child2");
|
||||
self.schedule_layout();
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -814,7 +814,7 @@ pub fn mode_getconnector(
|
|||
modes: modes.into_iter().map(|m| m.into()).collect(),
|
||||
props: props
|
||||
.into_iter()
|
||||
.zip(prop_values.into_iter())
|
||||
.zip(prop_values)
|
||||
.map(|(id, value)| DrmPropertyValue {
|
||||
id: DrmProperty(id),
|
||||
value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue