From a874344ced85241bea24db6adc684257bea563ef Mon Sep 17 00:00:00 2001 From: yoriswind Date: Thu, 19 Nov 2026 03:50:40 -0800 Subject: [PATCH] style: format DPX decoded budget assertion --- crates/image-codecs/tests/it/dpx.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/image-codecs/tests/it/dpx.rs b/crates/image-codecs/tests/it/dpx.rs index f800c6436..7999d0415 100644 --- a/crates/image-codecs/tests/it/dpx.rs +++ b/crates/image-codecs/tests/it/dpx.rs @@ -534,6 +534,9 @@ fn widened_samples_obey_the_exact_decoded_pixel_budget() { let options = |max_alloc| DecodeOptions { limits: Limits { max_alloc, ..Limits::default() }, ..Default::default() }; let budget = 5 * 3 * 3 * 2; assert!(decode_with(&bytes, &options(budget)).is_ok(), "the exact U16 pixel budget accepts the frame"); - assert!(matches!(decode_with(&bytes, &options(budget - 1)), Err(CodecError::LimitExceeded(_))), "one byte below the decoded size rejects the frame"); + assert!( + matches!(decode_with(&bytes, &options(budget - 1)), Err(CodecError::LimitExceeded(_))), + "one byte below the decoded size rejects the frame" + ); } }