workspaces: Fix clippy lints

This commit is contained in:
Ian Douglas Scott 2023-01-05 10:09:10 -08:00
parent ba832143fc
commit f2affe52fb
2 changed files with 11 additions and 11 deletions

View file

@ -117,12 +117,10 @@ pub fn spawn_workspaces(tx: mpsc::Sender<WorkspaceList>) -> SyncSender<Workspace
} else {
w_i.wrapping_add(1)
}
} else if w_i == 0 {
max_w
} else {
if w_i == 0 {
max_w
} else {
w_i.wrapping_sub(1)
}
w_i.wrapping_sub(1)
};
if let Some(w) = w_g.workspaces.get(d_i) {
w.handle.activate();