From 17dab636625f215693e83aaf133e3ab15cadd3be Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 25 Sep 2022 20:44:24 -0500 Subject: [PATCH] Clippy --- src/ffmpeg.rs | 2 +- src/magick.rs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ffmpeg.rs b/src/ffmpeg.rs index 35a1e4b..c38ec6a 100644 --- a/src/ffmpeg.rs +++ b/src/ffmpeg.rs @@ -85,7 +85,7 @@ pub(crate) async fn details_store( let mut tmp_one = crate::file::File::create(&input_file).await?; tmp_one - .write_from_stream(store.to_stream(&identifier, None, None).await?) + .write_from_stream(store.to_stream(identifier, None, None).await?) .await?; tmp_one.close().await?; diff --git a/src/magick.rs b/src/magick.rs index 6f0bc1a..75c7d82 100644 --- a/src/magick.rs +++ b/src/magick.rs @@ -69,10 +69,7 @@ impl ValidInputType { } pub(crate) fn is_video(self) -> bool { - match self { - Self::Mp4 | Self::Webm | Self::Gif => true, - _ => false, - } + matches!(self, Self::Mp4 | Self::Webm | Self::Gif) } fn video_hint(self) -> Option<&'static str> {