Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Integration: format

aionggb22fb933f821
diff --git a/crates/engine/src/cmd/file.rs b/crates/engine/src/cmd/file.rs
index 2bf163b8e..a268afacb 100644
--- a/crates/engine/src/cmd/file.rs
+++ b/crates/engine/src/cmd/file.rs
@@ -596,8 +596,7 @@ fn load_cursor(s: &mut Session, mut asset: Asset, size: (f64, f64)) -> Result<Va
}
fn place_drop(s: &mut Session, p: &Value) -> Result<Value> {
- let crate::LoadedGraphic { asset: aid, size: (nw, nh) } =
- s.loaded.ok_or_else(|| bad("place.drop", "nothing loaded in the place cursor"))?;
+ let crate::LoadedGraphic { asset: aid, size: (nw, nh) } = s.loaded.ok_or_else(|| bad("place.drop", "nothing loaded in the place cursor"))?;
// Undo can remove the loaded graphic's asset.
if !s.doc()?.doc.assets.contains_key(&aid) {
s.loaded = None;
diff --git a/crates/ui-egui/src/menus.rs b/crates/ui-egui/src/menus.rs
index 940b733d2..4b019d053 100644
--- a/crates/ui-egui/src/menus.rs
+++ b/crates/ui-egui/src/menus.rs
@@ -150,7 +150,12 @@ pub const UI_COMMANDS: &[(&str, &str, Option<&str>, &str)] = &[
"{} — each selected object's fill and stroke colours (and tints) trade places (object.swapFillStroke), or the text's with Formatting Affects Text",
),
("color.toggleFillStroke", "Toggle Fill and Stroke", Some("X"), "{} → {strokeFront} — which of fill and stroke the proxy has in front"),
- ("color.applyNone", "Apply None", Some("/"), "{} — [None] for the fill or stroke in front of the proxy, of the objects or the text (Formatting Affects Text)"),
+ (
+ "color.applyNone",
+ "Apply None",
+ Some("/"),
+ "{} — [None] for the fill or stroke in front of the proxy, of the objects or the text (Formatting Affects Text)",
+ ),
("view.frameEdges", "Show/Hide Frame Edges", Some("Cmd+H"), "{}"),
("view.rulers", "Show/Hide Rulers", Some("Cmd+R"), "{}"),
("view.guides", "Show/Hide Guides", Some("Cmd+;"), "{}"),