From 9d1e1772c02032f70b6db584dddae8fd06b490d6 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 7 Mar 2026 23:28:45 +0100 Subject: manual clippy --- transcoder/src/fragment.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'transcoder/src') diff --git a/transcoder/src/fragment.rs b/transcoder/src/fragment.rs index c34e8ee..2ff36a7 100644 --- a/transcoder/src/fragment.rs +++ b/transcoder/src/fragment.rs @@ -55,6 +55,7 @@ pub fn transcode_init( }) } +#[allow(clippy::too_many_arguments)] pub fn transcode( cache: &Cache, config: &Config, @@ -66,7 +67,7 @@ pub fn transcode( end_pts: u64, segment: impl FnOnce() -> Result, ) -> Result { - let command = transcode_command(kind, &input_format, output_format, false, config).unwrap(); + let command = transcode_command(kind, input_format, output_format, false, config).unwrap(); let output = cache.cache( &format!( @@ -115,10 +116,7 @@ pub fn transcode( } //? Remove extra kf hack - if clusters - .last() - .map_or(false, |c| c.simple_blocks.len() == 1) - { + if clusters.last().is_some_and(|c| c.simple_blocks.len() == 1) { clusters.pop(); } -- cgit v1.3