mirror of
https://github.com/H3rmt/hyprshell.git
synced 2026-01-09 05:41:06 +08:00
chore: some clippy fixes
Signed-off-by: Enrico Stemmer <enrico@h3rmt.zip>
This commit is contained in:
parent
e0e32b7db9
commit
c1bec1a5f1
@ -41,6 +41,7 @@ pub fn find_next_workspace(
|
||||
});
|
||||
|
||||
let index = find_next_grid(direction, wrap, filtered.len(), current, workspaces_per_row);
|
||||
#[allow(clippy::map_unwrap_or)]
|
||||
let next_active = filtered
|
||||
.get(index)
|
||||
.map(|(id, data)| Active {
|
||||
@ -98,6 +99,7 @@ pub fn find_next_client(
|
||||
.position(|(id, _)| *id == client_id)
|
||||
.unwrap_or(0);
|
||||
let index = find_next_grid(direction, wrap, filtered.len(), current, clients_per_row);
|
||||
#[allow(clippy::map_unwrap_or)]
|
||||
filtered
|
||||
.get(index)
|
||||
.map(|(id, data)| Active {
|
||||
@ -255,6 +257,7 @@ mod tests {
|
||||
monitor: 0,
|
||||
focus_history_id: 0,
|
||||
floating: false,
|
||||
#[allow(clippy::map_unwrap_or)]
|
||||
enabled: enabled.map(|s| s >= i).unwrap_or(true),
|
||||
pid: 0,
|
||||
},
|
||||
|
||||
@ -9,6 +9,6 @@
|
||||
"hyprshell"
|
||||
],
|
||||
"ignorePaths": [
|
||||
"./dep-crates/**/*"
|
||||
"dep-crates/**/*"
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user