Skip to content

Commit f3e8c90

Browse files
committed
chore: make clippy happy
1 parent a4cc8d6 commit f3e8c90

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/capture/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
mod capture;
21
mod framerate;
2+
mod processor;
33

4-
pub use capture::*;
54
pub use framerate::*;
5+
pub use processor::*;
File renamed without changes.

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ fn main() -> Result<()> {
8181
let frame_drop_strategy = args
8282
.is_present("natural-mode")
8383
.then(|| FrameDropStrategy::DoNotDropAny)
84-
.unwrap_or_else(|| FrameDropStrategy::DropIdenticalFrames);
84+
.unwrap_or(FrameDropStrategy::DropIdenticalFrames);
8585
let should_generate_gif = !args.is_present("video-only");
8686
let should_generate_video = args.is_present("video") || args.is_present("video-only");
8787
let (start_delay, end_delay) = (
@@ -92,7 +92,7 @@ fn main() -> Result<()> {
9292
.value_of("framerate")
9393
.unwrap()
9494
.parse::<u32>()
95-
.map(|f| Framerate::new(f))
95+
.map(Framerate::new)
9696
.context("Invalid value for framerate")?;
9797

9898
if should_generate_gif {

0 commit comments

Comments
 (0)