rustfmt interchange.rs (the IDML path chain from the main merge)

This commit is contained in:
FredApps committed 2026-11-26 22:31:18 +07:00
1 parent 69aad40e2f
commit e994dfa355
1 file changed
+3 -4
+3 -4
View File
@@ -547,10 +547,9 @@ fn import_interchange(s: &mut Session, bytes: Vec<u8>, package: Option<&std::pat
// Save writes IDML back to it. Anything else starts unsaved, so neither a converted .indd nor a
// file that isn't named .idml is ever overwritten (nor is any .idml with the native format).
let path = match s.prefs.save_format {
crate::SaveFormat::Idml if !from_indd => package
.and_then(std::path::Path::to_str)
.filter(|path| crate::SaveFormat::of_path(path) == crate::SaveFormat::Idml)
.map(str::to_string),
crate::SaveFormat::Idml if !from_indd => {
package.and_then(std::path::Path::to_str).filter(|path| crate::SaveFormat::of_path(path) == crate::SaveFormat::Idml).map(str::to_string)
}
_ => None,
};
let mut st = DocState::new(d, path);