Skip to content

Commit

Permalink
style: fix semicolon lint on nightly clippy (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger authored Feb 7, 2025
1 parent d3186ac commit 416c2c8
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/wm-platform/src/event_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ pub extern "system" fn event_window_proc(
IS_SYSTEM_SUSPENDED.store(true, Ordering::Relaxed);
}
_ => {}
};
}

LRESULT(0)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/wm-platform/src/native_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ impl NativeWindow {
}?;
}
}
};
}

// Whether to hide or show the window.
self.set_visible(is_visible, hide_method)?;
Expand Down
4 changes: 2 additions & 2 deletions packages/wm/src/commands/general/platform_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fn sync_focus(
info!("Setting focus to window: {window}");
} else {
info!("Setting focus to the desktop window.");
};
}

if let Err(err) = native_window.set_foreground() {
warn!("Failed to set foreground window: {}", err);
Expand Down Expand Up @@ -371,7 +371,7 @@ fn apply_window_effects(
|| window_effects.other_windows.border.enabled
{
apply_border_effect(window, effect_config);
};
}

if window_effects.focused_window.hide_title_bar.enabled
|| window_effects.other_windows.hide_title_bar.enabled
Expand Down
4 changes: 2 additions & 2 deletions packages/wm/src/commands/window/move_window_in_direction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ fn move_to_sibling_container(
.queue_containers_to_redraw(parent.tiling_children());
}
}
};
}

Ok(())
}
Expand Down Expand Up @@ -270,7 +270,7 @@ fn move_to_workspace_in_direction(
.queue_containers_to_redraw(parent.tiling_children())
.queue_cursor_jump()
.queue_workspace_to_reorder(target_workspace);
};
}

Ok(())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ pub fn move_window_to_workspace(
.queue_containers_to_redraw(current_workspace.tiling_children())
.queue_containers_to_redraw(target_workspace.tiling_children());
}
};
}

state
.pending_sync
Expand Down
2 changes: 1 addition & 1 deletion packages/wm/src/events/handle_window_shown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn handle_window_shown(
manage_window(native_window, None, state, config)?;
}
}
};
}

Ok(())
}
2 changes: 1 addition & 1 deletion packages/wm/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async fn main() -> anyhow::Result<()> {
if let Err(err) = &res {
error!("{:?}", err);
Platform::show_error_dialog("Fatal error", &err.to_string());
};
}

res
}
Expand Down
2 changes: 1 addition & 1 deletion packages/wm/src/wm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ impl WindowManager {
state,
config,
)?;
};
}

if let Some(name) = &args.workspace {
move_window_to_workspace(
Expand Down

0 comments on commit 416c2c8

Please sign in to comment.