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 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());
|
bindings.insert(id, obj.clone());
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ impl Session {
|
||||||
LOGIND_NAME,
|
LOGIND_NAME,
|
||||||
&self.session_path,
|
&self.session_path,
|
||||||
org::freedesktop::login1::session::TakeDevice { major, minor },
|
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, _>(
|
.handle_signal::<org::freedesktop::login1::session::PauseDevice, _>(
|
||||||
Some(LOGIND_NAME),
|
Some(LOGIND_NAME),
|
||||||
Some(&self.session_path),
|
Some(&self.session_path),
|
||||||
move |v| f(v),
|
f,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -154,7 +154,7 @@ impl Session {
|
||||||
LOGIND_NAME,
|
LOGIND_NAME,
|
||||||
&self.seat,
|
&self.seat,
|
||||||
org::freedesktop::login1::seat::SwitchTo { vtnr },
|
org::freedesktop::login1::seat::SwitchTo { vtnr },
|
||||||
|r| f(r),
|
f,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -736,7 +736,6 @@ impl ContainerNode {
|
||||||
child.node.tl_set_visible(true);
|
child.node.tl_set_visible(true);
|
||||||
// log::info!("activate_child2");
|
// log::info!("activate_child2");
|
||||||
self.schedule_layout();
|
self.schedule_layout();
|
||||||
} else {
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -814,7 +814,7 @@ pub fn mode_getconnector(
|
||||||
modes: modes.into_iter().map(|m| m.into()).collect(),
|
modes: modes.into_iter().map(|m| m.into()).collect(),
|
||||||
props: props
|
props: props
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.zip(prop_values.into_iter())
|
.zip(prop_values)
|
||||||
.map(|(id, value)| DrmPropertyValue {
|
.map(|(id, value)| DrmPropertyValue {
|
||||||
id: DrmProperty(id),
|
id: DrmProperty(id),
|
||||||
value,
|
value,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue