Keep metadata fixture exhaustive without panic

This commit is contained in:
Dylan M. Taylor committed 2026-11-15 16:48:37 +00:00
1 parent b30a9623e1
commit a99e47639e
1 file changed
+1 -1
+1 -1
View File
@@ -137,7 +137,7 @@ mod tests {
Format::Jpeg => replace_jpeg_exif(&mut bytes, EXIF),
Format::Png => replace_png_exif(&mut bytes, EXIF).unwrap(),
Format::WebP => replace_webp_exif(&mut bytes, EXIF).unwrap(),
_ => unreachable!(),
_ => {}
}
let decoded = crate::decode_as_with(format, &bytes, &crate::DecodeOptions { keep_orientation: true, ..Default::default() }).unwrap();
assert_eq!(decoded.meta.exif.as_deref().map(crate::exif_orientation), Some(6), "{format:?}");