From d64cab1c8899cac2f354eca922e2cd39c9941745 Mon Sep 17 00:00:00 2001 From: Nigel Ihza Firdausy <106657905+Ni-zav@users.noreply.github.com> Date: Sat, 10 Oct 2026 00:13:10 +0700 Subject: [PATCH] style(actions): use explicit str patterns in conflict-name checks --- crates/ui-egui/src/actions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/actions.rs b/crates/ui-egui/src/actions.rs index 39c7a404af..7825baaa2f 100644 --- a/crates/ui-egui/src/actions.rs +++ b/crates/ui-egui/src/actions.rs @@ -185,7 +185,7 @@ fn import_actions_bytes(app: &mut PhotocraftApp, bytes: &[u8]) -> Result Result::new(); for (source_name, action) in original.iter().zip(&mut planned) { if let Some(found) = existing.iter().find(|a| { - (a.name == *source_name || a.name.starts_with(&format!("{source_name} (Imported "))) && a.steps == action.steps + (a.name == *source_name || a.name.starts_with(format!("{source_name} (Imported ").as_str())) && a.steps == action.steps }) { corrected.insert(action.name.clone(), found.name.clone()); action.name = found.name.clone();