forge
Explore
Log in

Don't you dare go Hollow

9a6f31012d031a7fccaf607b49080ddce44f0935Jakob HellermannParent: 4294948
src/ipc/client.rsmodified+1 -1
@@ -220,7 +220,7 @@ pub fn handle_msg(mut msg: Msg, json: bool) -> anyhow::Result<()> {
220220
221221 let print = |surface: &niri_ipc::LayerSurface| {
222222 println!(" Surface:");
223- println!(" Namespace: \"{}\"", &surface.namespace);
223+ println!(" Namespace: \"{}\"", surface.namespace);
224224
225225 let interactivity = match surface.keyboard_interactivity {
226226 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
200200 // Send workspace_enter for all existing workspaces on this output.
201201 for group in &data.instances {
202202 let manager: &ExtWorkspaceManagerV1 = group.data().unwrap();
203- for (_, ws) in protocol_state.workspaces.iter() {
203+ for ws in protocol_state.workspaces.values() {
204204 if ws.output.as_ref() != Some(output) {
205205 continue;
206206 }
src/protocols/output_management.rsmodified+1 -1
@@ -250,7 +250,7 @@ impl OutputManagementManagerState {
250250 notify_new_head(self, output, conf);
251251 }
252252 }
253- for (old, _) in self.current_state.iter() {
253+ for old in self.current_state.keys() {
254254 if !new_state.contains_key(old) {
255255 changed = true;
256256 notify_removed_head(&mut self.clients, old);