Skip to content

Commit

Permalink
chore: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
sassman committed Feb 15, 2022
1 parent a4cc8d6 commit f3e8c90
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/capture/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod capture;
mod framerate;
mod processor;

pub use capture::*;
pub use framerate::*;
pub use processor::*;
File renamed without changes.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) = (
Expand All @@ -92,7 +92,7 @@ fn main() -> Result<()> {
.value_of("framerate")
.unwrap()
.parse::<u32>()
.map(|f| Framerate::new(f))
.map(Framerate::new)
.context("Invalid value for framerate")?;

if should_generate_gif {
Expand Down

0 comments on commit f3e8c90

Please sign in to comment.