Skip to content

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

Integration: cargo fmt

aiongg0e30ad50d0fd
diff --git a/apps/designcraft-cli/src/main.rs b/apps/designcraft-cli/src/main.rs
index f40bd524e..20e8509e7 100644
--- a/apps/designcraft-cli/src/main.rs
+++ b/apps/designcraft-cli/src/main.rs
@@ -273,7 +273,9 @@ impl Export {
Some("html" | "htm") => Export::Command("file.exportHtml"),
// The story being edited or of the selected frame.
Some("rtf" | "txt") => Export::Command("file.exportText"),
- Some(_) => return Err(format!("--export {out}: unknown file type (.png, .jpg, .pdf, .designcraft, .idml, .epub, .pptx, .html, .rtf, .txt)")),
+ Some(_) => {
+ return Err(format!("--export {out}: unknown file type (.png, .jpg, .pdf, .designcraft, .idml, .epub, .pptx, .html, .rtf, .txt)"));
+ }
})
}
}
diff --git a/crates/epub/src/lib.rs b/crates/epub/src/lib.rs
index 6ee272f61..15dfcfd40 100644
--- a/crates/epub/src/lib.rs
+++ b/crates/epub/src/lib.rs
@@ -1982,9 +1982,9 @@ mod tests {
assert_eq!(css_weight_style("Bold"), (700, "normal"));
assert_eq!(css_weight_style("Extra Bold"), (800, "normal"));
assert_eq!(css_weight_style("Regular"), (400, "normal"));
- assert_eq!(css_weight_style("Light"), (300, "normal"));
- assert_eq!(css_weight_style("Thin Oblique"), (100, "italic"));
- assert_eq!(css_weight_style("Black"), (900, "normal"));
+ assert_eq!(css_weight_style("Light"), (300, "normal"));
+ assert_eq!(css_weight_style("Thin Oblique"), (100, "italic"));
+ assert_eq!(css_weight_style("Black"), (900, "normal"));
let mut d = Document::new(&NewDocument::default());
let lid = d.default_layer();