From bdec3e5bcfc21be4a080245293c84fa58389e45a Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Sat, 24 Oct 2026 08:46:18 +0000 Subject: [PATCH] fix(h264): use Option::as_ref instead of closure (S1612) Co-Authored-By: Claude Sonnet 5.5 --- crates/h264/src/params.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/h264/src/params.rs b/crates/h264/src/params.rs index 8b36b3ab..2a3b2e3d 100644 --- a/crates/h264/src/params.rs +++ b/crates/h264/src/params.rs @@ -575,7 +575,7 @@ impl Pps { ensure!(sps_id < 32, "seq_parameter_set_id out of range"); let sps = spss .get(sps_id as usize) - .and_then(|s| s.as_ref()) + .and_then(Option::as_ref) .ok_or_else(|| crate::Error::MissingParameterSet(format!("SPS {sps_id} for PPS {id}")))?; let entropy_coding_mode = r.read_flag()?; let bottom_field_pic_order_in_frame_present = r.read_flag()?;