Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

style: apply rustfmt layout for multi-layer drag handler

Nigel Ihza Firdausy38257f0209fa
diff --git a/crates/ui-egui/src/panels.rs b/crates/ui-egui/src/panels.rs
index 11c646594..5745ce2da 100644
--- a/crates/ui-egui/src/panels.rs
+++ b/crates/ui-egui/src/panels.rs
@@ -2688,7 +2688,15 @@ fn layer_drop_payload(dragged: u64, target: LayerId, position: &str, selected: &
/// Drag a layer row to reorder: drop above, below, or inside an existing group.
/// Multi-layer moves are atomic (one undo step), using the engine's stable document order.
-fn layer_drag_and_drop(app: &PhotocraftApp, ctx: &egui::Context, ui: &egui::Ui, l: &Layer, rect: Rect, resp: &egui::Response, actions: &mut Vec<(String, Value)>) {
+fn layer_drag_and_drop(
+ app: &PhotocraftApp,
+ ctx: &egui::Context,
+ ui: &egui::Ui,
+ l: &Layer,
+ rect: Rect,
+ resp: &egui::Response,
+ actions: &mut Vec<(String, Value)>,
+) {
let t = Tokens::get(ctx);
let key = egui::Id::new("layer-drag");
if resp.drag_started() {