Integration: cargo fmt

This commit is contained in:
aiongg
2026-10-16 03:11:53 +00:00
parent 1a6ee2ca70
commit 0e30ad50d0
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -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)"));
}
})
}
}
+3 -3
View File
@@ -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();