forge
Explore
Log in

Don't you dare go Hollow

layout: Return instead of breaking

Browse files at this commit

9824321fc9499b9987f344308a5c5c69cb9b7a77Ivan MolodetskikhParent: 27e607a
There's no code past this, and we want to break out of all loops.
src/layout/mod.rsmodified+1 -1
@@ -1384,7 +1384,7 @@ impl<W: LayoutElement> Layout<W> {
1384 _ => mon.switch_workspace(workspace_idx),1384 _ => mon.switch_workspace(workspace_idx),
1385 }1385 }
1386 1386
1387- break;1387+ return;
1388 }1388 }
1389 }1389 }
1390 }1390 }