Fix clippy lints

This commit is contained in:
Jakob Hellermann
2026-05-16 13:25:07 +02:00
committed by Ivan Molodetskikh
parent 4294948cf1
commit 9a6f31012d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -220,7 +220,7 @@ pub fn handle_msg(mut msg: Msg, json: bool) -> anyhow::Result<()> {
let print = |surface: &niri_ipc::LayerSurface| {
println!(" Surface:");
println!(" Namespace: \"{}\"", &surface.namespace);
println!(" Namespace: \"{}\"", surface.namespace);
let interactivity = match surface.keyboard_interactivity {
niri_ipc::LayerSurfaceKeyboardInteractivity::None => "none",
+1 -1
View File
@@ -200,7 +200,7 @@ fn refresh_workspace_group(protocol_state: &mut ExtWorkspaceManagerState, output
// Send workspace_enter for all existing workspaces on this output.
for group in &data.instances {
let manager: &ExtWorkspaceManagerV1 = group.data().unwrap();
for (_, ws) in protocol_state.workspaces.iter() {
for ws in protocol_state.workspaces.values() {
if ws.output.as_ref() != Some(output) {
continue;
}
+1 -1
View File
@@ -250,7 +250,7 @@ impl OutputManagementManagerState {
notify_new_head(self, output, conf);
}
}
for (old, _) in self.current_state.iter() {
for old in self.current_state.keys() {
if !new_state.contains_key(old) {
changed = true;
notify_removed_head(&mut self.clients, old);