Fix clippy lints
Browse files at this commit9a6f31012d031a7fccaf607b49080ddce44f0935Parent: 42949483 changed files +3 -3
src/ipc/client.rsmodified+1 -1
| @@ -220,7 +220,7 @@ pub fn handle_msg(mut msg: Msg, json: bool) -> anyhow::Result<()> { | ||
| 220 | 220 | |
| 221 | 221 | let print = |surface: &niri_ipc::LayerSurface| { |
| 222 | 222 | println!(" Surface:"); |
| 223 | - println!(" Namespace: \"{}\"", &surface.namespace); | |
| 223 | + println!(" Namespace: \"{}\"", surface.namespace); | |
| 224 | 224 | |
| 225 | 225 | let interactivity = match surface.keyboard_interactivity { |
| 226 | 226 | niri_ipc::LayerSurfaceKeyboardInteractivity::None => "none", |
src/protocols/ext_workspace.rsmodified+1 -1
| @@ -200,7 +200,7 @@ fn refresh_workspace_group(protocol_state: &mut ExtWorkspaceManagerState, output | ||
| 200 | 200 | // Send workspace_enter for all existing workspaces on this output. |
| 201 | 201 | for group in &data.instances { |
| 202 | 202 | let manager: &ExtWorkspaceManagerV1 = group.data().unwrap(); |
| 203 | - for (_, ws) in protocol_state.workspaces.iter() { | |
| 203 | + for ws in protocol_state.workspaces.values() { | |
| 204 | 204 | if ws.output.as_ref() != Some(output) { |
| 205 | 205 | continue; |
| 206 | 206 | } |
src/protocols/output_management.rsmodified+1 -1
| @@ -250,7 +250,7 @@ impl OutputManagementManagerState { | ||
| 250 | 250 | notify_new_head(self, output, conf); |
| 251 | 251 | } |
| 252 | 252 | } |
| 253 | - for (old, _) in self.current_state.iter() { | |
| 253 | + for old in self.current_state.keys() { | |
| 254 | 254 | if !new_state.contains_key(old) { |
| 255 | 255 | changed = true; |
| 256 | 256 | notify_removed_head(&mut self.clients, old); |