From f3e8c90003ccb740029cc00c04c75b048625e49c Mon Sep 17 00:00:00 2001 From: Sven Assmann Date: Tue, 15 Feb 2022 10:28:28 +0100 Subject: [PATCH] chore: make clippy happy --- src/capture/mod.rs | 4 ++-- src/capture/{capture.rs => processor.rs} | 0 src/main.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/capture/{capture.rs => processor.rs} (100%) diff --git a/src/capture/mod.rs b/src/capture/mod.rs index b1874b3..8c3042a 100644 --- a/src/capture/mod.rs +++ b/src/capture/mod.rs @@ -1,5 +1,5 @@ -mod capture; mod framerate; +mod processor; -pub use capture::*; pub use framerate::*; +pub use processor::*; diff --git a/src/capture/capture.rs b/src/capture/processor.rs similarity index 100% rename from src/capture/capture.rs rename to src/capture/processor.rs diff --git a/src/main.rs b/src/main.rs index ca85d07..1004271 100644 --- a/src/main.rs +++ b/src/main.rs @@ -81,7 +81,7 @@ fn main() -> Result<()> { let frame_drop_strategy = args .is_present("natural-mode") .then(|| FrameDropStrategy::DoNotDropAny) - .unwrap_or_else(|| FrameDropStrategy::DropIdenticalFrames); + .unwrap_or(FrameDropStrategy::DropIdenticalFrames); let should_generate_gif = !args.is_present("video-only"); let should_generate_video = args.is_present("video") || args.is_present("video-only"); let (start_delay, end_delay) = ( @@ -92,7 +92,7 @@ fn main() -> Result<()> { .value_of("framerate") .unwrap() .parse::() - .map(|f| Framerate::new(f)) + .map(Framerate::new) .context("Invalid value for framerate")?; if should_generate_gif {