mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Fix clippy in the new limits test
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
442d1e5a6e
commit
14e8239866
1 file changed
+1
-2
@@ -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(_)))));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user