From 14e8239866ac08273eec02bfc67b018887d159ef Mon Sep 17 00:00:00 2001 From: vangel76 Date: Tue, 10 Nov 2026 21:43:05 +0100 Subject: [PATCH] Fix clippy in the new limits test Co-Authored-By: Claude Sonnet 5.5 --- crates/io/src/raw.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/io/src/raw.rs b/crates/io/src/raw.rs index c75556b60c1..30fa9446d06 100644 --- a/crates/io/src/raw.rs +++ b/crates/io/src/raw.rs @@ -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(_))))); }