From 97ba4e806bb40c5fc6ffa4e02597dad55e59b456 Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 25 Feb 2023 13:01:55 -0600 Subject: [PATCH] Clippy --- src/ffmpeg.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ffmpeg.rs b/src/ffmpeg.rs index cb9266d..5d269ad 100644 --- a/src/ffmpeg.rs +++ b/src/ffmpeg.rs @@ -90,14 +90,14 @@ impl TranscodeOptions { } const fn supports_alpha(&self) -> bool { - match self.output { + matches!( + self.output, TranscodeOutputOptions::Gif - | TranscodeOutputOptions::Video { - video_codec: VideoCodec::Vp8 | VideoCodec::Vp9, - .. - } => true, - _ => false, - } + | TranscodeOutputOptions::Video { + video_codec: VideoCodec::Vp8 | VideoCodec::Vp9, + .. + } + ) } fn execute( @@ -368,7 +368,7 @@ async fn alpha_pixel_formats() -> Result, Error> { return None; } - if !format.ends_with("1") { + if !format.ends_with('1') { return None; }