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> {
13841384 _ => mon.switch_workspace(workspace_idx),
13851385 }
13861386
1387- break;
1387+ return;
13881388 }
13891389 }
13901390 }