Fix clippy in the new limits test

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
vangel76andClaude Sonnet 5.5 committed 2026-11-10 21:43:05 +01:00
1 parent 442d1e5a6e
commit 14e8239866
1 file changed
+1 -2
+1 -2
View File
@@ -514,8 +514,7 @@ mod tests {
let (w, h) = (40, 24);
let bytes = DngSpec::cfa(w, h, mosaic(&scene(w, h), w, [0, 1, 1, 2], 0, 65535)).build();
assert!(import_raw_with("a.dng", &bytes, &DevelopOptions::default()).is_ok());
let mut tight = DevelopOptions::default();
tight.limits = Limits { max_width: 8, max_height: 8, max_pixels: 64, max_alloc: 1 << 20 };
let tight = DevelopOptions { limits: Limits { max_width: 8, max_height: 8, max_pixels: 64, max_alloc: 1 << 20 }, ..DevelopOptions::default() };
assert!(matches!(import_raw_with("a.dng", &bytes, &tight), Err(IoError::Raw(RawError::LimitExceeded(_)))));
}