mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 17:37:14 +00:00
Fix rustfmt on snap_ui smart-target assignment.
CI Format step failed on a line break rustc-fmt does not want. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
c71f951b90
commit
2e8d20ca9c
1 file changed
+1
-2
@@ -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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user