From 0e30ad50d0fdd7c069d9ef841f6bf17d855f65cb Mon Sep 17 00:00:00 2001 From: aiongg Date: Fri, 16 Oct 2026 03:11:53 +0000 Subject: [PATCH] Integration: cargo fmt --- apps/designcraft-cli/src/main.rs | 4 +++- crates/epub/src/lib.rs | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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();