PhotoCraft: An open-source, photo editor written by scratch in pure Rust
rustfmt: format after merging main (CI Format step)
Higgs32584c972acf98fb4
diff --git a/crates/automation/tests/smart_filter_authorization.rs b/crates/automation/tests/smart_filter_authorization.rsindex a5c1681a5..30f17b795 100644--- a/crates/automation/tests/smart_filter_authorization.rs+++ b/crates/automation/tests/smart_filter_authorization.rs@@ -230,11 +230,9 @@ fn a_refresh_outside_command_execution_surfaces_the_denial_instead_of_rendering_let before = h.session.active().unwrap().doc.clone();// Session::edit is the outside-execute mutation path (an edit closure the UI or a// linked-file change runs); the stored filter must be denied there too.- assert_denied(h.session.edit("Re-render", |d, _| {- match smart_cmds::refresh(d, layer) {- Ok(_) => Ok(()),- Err(e) => Err(e),- }+ assert_denied(h.session.edit("Re-render", |d, _| match smart_cmds::refresh(d, layer) {+ Ok(_) => Ok(()),+ Err(e) => Err(e),}));assert!(Arc::ptr_eq(&before, &h.session.active().unwrap().doc));// A trusted session (no gate) still renders the same document.diff --git a/crates/ui-egui/src/menu_nav.rs b/crates/ui-egui/src/menu_nav.rsindex 879bd4397..c9aedd77d 100644--- a/crates/ui-egui/src/menu_nav.rs+++ b/crates/ui-egui/src/menu_nav.rs@@ -339,9 +339,7 @@ impl Nav {// A text field in the menu (Help › Search) keeps the keys that edit it: ← / → move its// cursor and Space types a space.let typing = ctx.text_edit_focused();- let press = |k: Key| {- !(typing && matches!(k, Key::ArrowLeft | Key::ArrowRight | Key::Space)) && ctx.input_mut(|i| i.consume_key(Modifiers::NONE, k))- };+ let press = |k: Key| !(typing && matches!(k, Key::ArrowLeft | Key::ArrowRight | Key::Space)) && ctx.input_mut(|i| i.consume_key(Modifiers::NONE, k));let current = self.highlighted(level).and_then(|i| self.rows.get(level)?.get(i)).cloned();let switch = |by: usize| {let n = tops.len();