From f2749d5242266f86bfebfc9d624de7dc62f49166 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Wed, 11 Nov 2026 10:12:21 +0000 Subject: [PATCH] cargo fmt --- crates/engine/src/cmd/float_cmds.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/cmd/float_cmds.rs b/crates/engine/src/cmd/float_cmds.rs index f9479e422e0..eb2130a04e2 100644 --- a/crates/engine/src/cmd/float_cmds.rs +++ b/crates/engine/src/cmd/float_cmds.rs @@ -357,8 +357,16 @@ pub fn drop_floating(s: &mut Session) -> Result { /// Commands that leave a floating piece floating: its own, and ones that don't touch documents. fn keeps_floating(id: &str) -> bool { - matches!(id, "select.float" | "select.drop" | "file.export.saveForWebLegacy" | "layer.copyToDocument" | "brush.mixer.sample" | "brush.mixer.load" | "brush.mixer.clean") - || ["view.", "window.", "help.", "prefs."].iter().any(|p| id.starts_with(p)) + matches!( + id, + "select.float" + | "select.drop" + | "file.export.saveForWebLegacy" + | "layer.copyToDocument" + | "brush.mixer.sample" + | "brush.mixer.load" + | "brush.mixer.clean" + ) || ["view.", "window.", "help.", "prefs."].iter().any(|p| id.starts_with(p)) } /// Before any command (`Session::dispatch`): Undo puts a floating piece back (and is used up: