Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

Format with rustfmt

bflatastic1bd47ea30d9e
diff --git a/crates/color/src/cms/icc.rs b/crates/color/src/cms/icc.rs
index 2599956ce..0b09062b8 100644
--- a/crates/color/src/cms/icc.rs
+++ b/crates/color/src/cms/icc.rs
@@ -107,7 +107,10 @@ impl IccProfile {
return Err(CmsError::BadProfile(format!("its localized names take more than {} KB", MAX_LOCALIZED_TEXT >> 10)));
}
if let Some(tag) = repeated_tag(bytes) {
- return Err(CmsError::BadProfile(format!("its tag table lists the `{}` tag more than once", String::from_utf8_lossy(&tag.to_be_bytes()))));
+ return Err(CmsError::BadProfile(format!(
+ "its tag table lists the `{}` tag more than once",
+ String::from_utf8_lossy(&tag.to_be_bytes())
+ )));
}
let p = ColorProfile::new_from_slice(bytes).map_err(|e| CmsError::BadProfile(format!("{e:?}")))?;
Ok(Self { source: bytes.to_vec(), ..Self::from_profile(name, p)? })