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 17, 2022
1 parent 2858815 commit 00dfc01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
15 changes: 1 addition & 14 deletions src/capture/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn capture_thread(
api: impl PlatformApi + Sync,
win_id: WindowId,
time_codes: Arc<Mutex<Vec<u128>>>,
tempdir: Arc<TempDir>,
tempdir: Arc<Mutex<TempDir>>,
frame_drop_strategy: &FrameDropStrategy,
framerate: &Framerate,
) -> Result<()> {
Expand Down Expand Up @@ -130,19 +130,6 @@ pub fn capture_thread(
Ok(())
}

fn capture_and_save_frame(
api: Arc<impl PlatformApi + Sync>,
win_id: WindowId,
timecode: u128,
tempdir: Arc<Mutex<TempDir>>,
file_name_fn: fn(&u128, &str) -> String,
) -> Result<()> {
let mut result: Result<()> = Ok(());
rayon::scope(|s| s.spawn(|_| {}));

Ok(())
}

/// saves a frame as a tga file
pub fn save_frame(
image: &ImageOnHeap,
Expand Down
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 00dfc01

Please sign in to comment.