chore: clippy
This commit is contained in:
parent
3b70bc0265
commit
0847247c33
77 changed files with 865 additions and 1029 deletions
|
|
@ -51,9 +51,7 @@ fn next_workspace(
|
|||
shell
|
||||
.workspaces
|
||||
.spaces_for_output(&output)
|
||||
.skip_while(|space| space.handle != current_handle)
|
||||
.skip(1)
|
||||
.next()
|
||||
.skip_while(|space| space.handle != current_handle).nth(1)
|
||||
.map(|space| (current_handle, space.handle))
|
||||
}
|
||||
|
||||
|
|
@ -62,7 +60,7 @@ fn move_fullscreen_prev_workspace(state: &mut State, surface: &CosmicSurface) {
|
|||
let Some(wl_surface) = surface.wl_surface() else {
|
||||
return;
|
||||
};
|
||||
let Some((from, to)) = prev_workspace(&shell, &*wl_surface) else {
|
||||
let Some((from, to)) = prev_workspace(&shell, &wl_surface) else {
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
@ -88,7 +86,7 @@ fn move_fullscreen_next_workspace(state: &mut State, surface: &CosmicSurface) {
|
|||
let Some(wl_surface) = surface.wl_surface() else {
|
||||
return;
|
||||
};
|
||||
let Some((from, to)) = next_workspace(&shell, &*wl_surface) else {
|
||||
let Some((from, to)) = next_workspace(&shell, &wl_surface) else {
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
@ -115,7 +113,7 @@ fn move_element_prev_workspace(state: &mut State, mapped: &CosmicMapped) {
|
|||
let Some(wl_surface) = window.wl_surface() else {
|
||||
return;
|
||||
};
|
||||
let Some((from, to)) = prev_workspace(&shell, &*wl_surface) else {
|
||||
let Some((from, to)) = prev_workspace(&shell, &wl_surface) else {
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
@ -141,7 +139,7 @@ fn move_element_next_workspace(state: &mut State, mapped: &CosmicMapped) {
|
|||
let Some(wl_surface) = window.wl_surface() else {
|
||||
return;
|
||||
};
|
||||
let Some((from, to)) = next_workspace(&shell, &*wl_surface) else {
|
||||
let Some((from, to)) = next_workspace(&shell, &wl_surface) else {
|
||||
return;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue