Format with rustfmt

This commit is contained in:
bflatastic
2026-11-03 16:03:38 +07:00
parent 8e692d83ed
commit 1bd47ea30d
+4 -1
View File
@@ -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)? })