From 48a1851ddc3d0b3acb36d7217c3d1f873ce74b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 13:42:32 +0300 Subject: [PATCH] U7: tidy the submit return and the wavefront helper spawn (clippy) --- crates/ec-h265/src/dec/cu_syntax/wpp.rs | 4 +--- crates/ec-h265/src/dec/mod.rs | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/ec-h265/src/dec/cu_syntax/wpp.rs b/crates/ec-h265/src/dec/cu_syntax/wpp.rs index 79617bae..d1c372c6 100644 --- a/crates/ec-h265/src/dec/cu_syntax/wpp.rs +++ b/crates/ec-h265/src/dec/cu_syntax/wpp.rs @@ -567,9 +567,7 @@ pub(in crate::dec) fn parse_segment( Ok(done) }; let results: Vec>> = std::thread::scope(|s| { - let helpers: Vec<_> = (1..workers.clamp(1, nrows)) - .map(|_| s.spawn(|| run())) - .collect(); + let helpers: Vec<_> = (1..workers.clamp(1, nrows)).map(|_| s.spawn(run)).collect(); let mut all = vec![run()]; for h in helpers { all.push(h.join().unwrap_or_else(|_| { diff --git a/crates/ec-h265/src/dec/mod.rs b/crates/ec-h265/src/dec/mod.rs index f086ac39..b54ca6fc 100644 --- a/crates/ec-h265/src/dec/mod.rs +++ b/crates/ec-h265/src/dec/mod.rs @@ -580,7 +580,7 @@ impl Decoder { [Vec::new(), Vec::new()] }; let col = motion_field::collocated(dpb, slice, &cur.lists); - let submitted = cur.runner.submit(SliceJob { + cur.runner.submit(SliceJob { rbsp, data_off, header: slice.clone(), @@ -591,8 +591,7 @@ impl Decoder { col, cur_poc: cur.poc, substreams, - }); - submitted + }) } /// C.5.2.3: store the open picture in the buffer and run the additional