clippy fixes

This commit is contained in:
Victoria Brekenfeld 2023-05-19 19:47:59 +02:00
parent adc28eeb93
commit 9be6c85459
3 changed files with 2 additions and 3 deletions

View file

@ -1201,7 +1201,7 @@ impl KmsState {
.values_mut() .values_mut()
.find(|dev| dev.surfaces.values().any(|s| s.output == *output)) .find(|dev| dev.surfaces.values().any(|s| s.output == *output))
{ {
let (crtc, mut surface) = device let (crtc, surface) = device
.surfaces .surfaces
.iter_mut() .iter_mut()
.find(|(_, s)| s.output == *output) .find(|(_, s)| s.output == *output)

View file

@ -48,7 +48,6 @@ impl ToplevelManagementHandler for State {
.unwrap() .unwrap()
.clone(); .clone();
std::mem::drop(workspace);
self.common.shell.activate(&output, idx as usize); self.common.shell.activate(&output, idx as usize);
mapped.focus_window(window); mapped.focus_window(window);
Common::set_focus(self, Some(&mapped.clone().into()), &seat, None); Common::set_focus(self, Some(&mapped.clone().into()), &seat, None);

View file

@ -81,7 +81,7 @@ impl State {
); );
} }
let mut xwayland_state = data.state.common.xwayland_state.as_mut().unwrap(); let xwayland_state = data.state.common.xwayland_state.as_mut().unwrap();
xwayland_state.xwm = Some(wm); xwayland_state.xwm = Some(wm);
} }
XWaylandEvent::Exited => { XWaylandEvent::Exited => {