diff options
| author | metamuffin <metamuffin@disroot.org> | 2026-03-07 23:28:45 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2026-03-07 23:28:45 +0100 |
| commit | 9d1e1772c02032f70b6db584dddae8fd06b490d6 (patch) | |
| tree | 9d97b4d3e1252c4b99f30a19f339700eaab44c45 /transcoder/src | |
| parent | d1b7691adb7c40bf21053d324fdac16c544cd536 (diff) | |
| download | jellything-9d1e1772c02032f70b6db584dddae8fd06b490d6.tar jellything-9d1e1772c02032f70b6db584dddae8fd06b490d6.tar.bz2 jellything-9d1e1772c02032f70b6db584dddae8fd06b490d6.tar.zst | |
manual clippy
Diffstat (limited to 'transcoder/src')
| -rw-r--r-- | transcoder/src/fragment.rs | 8 |
1 files changed, 3 insertions, 5 deletions
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<Segment>, ) -> Result<Segment> { - 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(); } |