Skip to content

Commit 00dfc01

Browse files
committed
chore: make clippy happy
1 parent 2858815 commit 00dfc01

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

src/capture/processor.rs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn capture_thread(
4444
api: impl PlatformApi + Sync,
4545
win_id: WindowId,
4646
time_codes: Arc<Mutex<Vec<u128>>>,
47-
tempdir: Arc<TempDir>,
47+
tempdir: Arc<Mutex<TempDir>>,
4848
frame_drop_strategy: &FrameDropStrategy,
4949
framerate: &Framerate,
5050
) -> Result<()> {
@@ -130,19 +130,6 @@ pub fn capture_thread(
130130
Ok(())
131131
}
132132

133-
fn capture_and_save_frame(
134-
api: Arc<impl PlatformApi + Sync>,
135-
win_id: WindowId,
136-
timecode: u128,
137-
tempdir: Arc<Mutex<TempDir>>,
138-
file_name_fn: fn(&u128, &str) -> String,
139-
) -> Result<()> {
140-
let mut result: Result<()> = Ok(());
141-
rayon::scope(|s| s.spawn(|_| {}));
142-
143-
Ok(())
144-
}
145-
146133
/// saves a frame as a tga file
147134
pub fn save_frame(
148135
image: &ImageOnHeap,

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)