PhotoCraft: An open-source, photo editor written by scratch in pure Rust
rustfmt crates/ui-egui/src/canvas.rs (Format red on main since #711) (#819)
Brandon Thomas83ace1138e1f
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rsindex cb02c076c..8bda726bb 100644--- a/crates/ui-egui/src/canvas.rs+++ b/crates/ui-egui/src/canvas.rs@@ -57,7 +57,19 @@ pub struct Drag {impl Drag {pub fn new(tool: Tool, start: [f64; 2], points: Vec<[f64; 3]>, modifiers: egui::Modifiers, erase: bool) -> Self {- Self { tool, start, points, modifiers, erase, constrain: None, live: modifiers, released: egui::Modifiers::NONE, reposition: false, sel_move: None, lasso: None }+ Self {+ tool,+ start,+ points,+ modifiers,+ erase,+ constrain: None,+ live: modifiers,+ released: egui::Modifiers::NONE,+ reposition: false,+ sel_move: None,+ lasso: None,+ }}/// Reposition: move the start and every point so the last one lands on `to` (same size).