From 7190c858604fb2c94d332554cdeeb8ad755d0707 Mon Sep 17 00:00:00 2001 From: Harrison Booth <73434116+Harrison-Booth@users.noreply.github.com> Date: Fri, 30 Oct 2026 17:06:36 -0500 Subject: [PATCH] test(h264): avoid singleton fixture loop --- crates/h264/src/synth_tests.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/h264/src/synth_tests.rs b/crates/h264/src/synth_tests.rs index a2f9988a..ac00d860 100644 --- a/crates/h264/src/synth_tests.rs +++ b/crates/h264/src/synth_tests.rs @@ -117,10 +117,9 @@ fn avcc_rejects_a_valid_picture_slice_without_starting_a_picture() { false, ); let mut avcc = vec![1, 66, 0, 30, 0xff, 0xe1]; - for nal in [&sequence[4..]] { - avcc.extend_from_slice(&(nal.len() as u16).to_be_bytes()); - avcc.extend_from_slice(nal); - } + let nal = &sequence[4..]; + avcc.extend_from_slice(&(nal.len() as u16).to_be_bytes()); + avcc.extend_from_slice(nal); avcc.push(2); avcc.extend_from_slice(&((picture.len() - 4) as u16).to_be_bytes()); avcc.extend_from_slice(&picture[4..]);