PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Fix rustfmt on snap_ui smart-target assignment.
nrq6993-a11y2e8d20ca9cd0
diff --git a/crates/ui-egui/src/snap_ui.rs b/crates/ui-egui/src/snap_ui.rsindex b0cb95e2f..ccdd4fea8 100644--- a/crates/ui-egui/src/snap_ui.rs+++ b/crates/ui-egui/src/snap_ui.rs@@ -228,8 +228,7 @@ fn begin(app: &mut PhotocraftApp, p: [f64; 2], mods: egui::Modifiers) {// A moving selection never snaps back to where it started.targets = targets.filtered(|k| k != SnapKind::Selection);}- let smart =- if snap_on(app) && matches!(gesture, Gesture::Move { .. }) && smart_on(app) { build(app, &exclude, true) } else { SnapTargets::default() };+ let smart = if snap_on(app) && matches!(gesture, Gesture::Move { .. }) && smart_on(app) { build(app, &exclude, true) } else { SnapTargets::default() };app.prefs_rt.snap = Some(ActiveSnap { gesture, start: p, targets, smart, disabled: false });}