chore: clippy

This commit is contained in:
Vukašin Vojinović 2025-10-16 13:50:32 +02:00 committed by Victoria Brekenfeld
parent 3b70bc0265
commit 0847247c33
77 changed files with 865 additions and 1029 deletions

View file

@ -50,7 +50,7 @@ pub fn init(evlh: &LoopHandle<'static, State>) -> Result<Vec<RegistrationToken>>
}
}
()
}
calloop::channel::Event::Closed => (),
})
@ -61,8 +61,8 @@ pub fn init(evlh: &LoopHandle<'static, State>) -> Result<Vec<RegistrationToken>>
let result = std::thread::Builder::new()
.name("system76-power-hotplug".to_string())
.spawn(move || {
if let Ok(mut msg_iter) = power_daemon.receive_hot_plug_detect() {
while let Some(msg) = msg_iter.next() {
if let Ok(msg_iter) = power_daemon.receive_hot_plug_detect() {
for msg in msg_iter {
if tx.send(msg).is_err() {
break;
}
@ -104,7 +104,7 @@ pub fn ready(common: &Common) -> Result<()> {
.xwayland_state
.as_ref()
.map(|s| format!(":{}", s.display))
.unwrap_or(String::new()),
.unwrap_or_default(),
),
]))?;