Skip to content

PhotoCraft: An open-source, photo editor written by scratch in pure Rust

rustfmt; merge main (CI Format step)

Higgs325845f8d92f9f02e
diff --git a/crates/automation/tests/smart_filter_authorization.rs b/crates/automation/tests/smart_filter_authorization.rs
index a5c1681a5..30f17b795 100644
--- a/crates/automation/tests/smart_filter_authorization.rs
+++ b/crates/automation/tests/smart_filter_authorization.rs
@@ -230,11 +230,9 @@ fn a_refresh_outside_command_execution_surfaces_the_denial_instead_of_rendering_
let before = h.session.active().unwrap().doc.clone();
// Session::edit is the outside-execute mutation path (an edit closure the UI or a
// linked-file change runs); the stored filter must be denied there too.
- assert_denied(h.session.edit("Re-render", |d, _| {
- match smart_cmds::refresh(d, layer) {
- Ok(_) => Ok(()),
- Err(e) => Err(e),
- }
+ assert_denied(h.session.edit("Re-render", |d, _| match smart_cmds::refresh(d, layer) {
+ Ok(_) => Ok(()),
+ Err(e) => Err(e),
}));
assert!(Arc::ptr_eq(&before, &h.session.active().unwrap().doc));
// A trusted session (no gate) still renders the same document.
diff --git a/crates/engine/src/print_cmds.rs b/crates/engine/src/print_cmds.rs
index 69f450553..88ed6c788 100644
--- a/crates/engine/src/print_cmds.rs
+++ b/crates/engine/src/print_cmds.rs
@@ -447,7 +447,9 @@ fn require_windows_pdf() -> Result<()> {
if windows_pdf_installed(std::path::Path::new(&root)) {
Ok(())
} else {
- Err(other("printing this page needs the Windows PDF component (Windows.Data.Pdf.dll), which is not installed. Save as PDF and print it from another app, or clear Print Settings to print directly."))
+ Err(other(
+ "printing this page needs the Windows PDF component (Windows.Data.Pdf.dll), which is not installed. Save as PDF and print it from another app, or clear Print Settings to print directly.",
+ ))
}
}