Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: clippy needless_update and clone_on_copy findings

Richie McIlroyff418c302d97
diff --git a/apps/cli/src/selftest/playback.rs b/apps/cli/src/selftest/playback.rs
index 182eddc49..eede85ec4 100644
--- a/apps/cli/src/selftest/playback.rs
+++ b/apps/cli/src/selftest/playback.rs
@@ -722,7 +722,6 @@ mod fixture {
let total_secs = pattern.total_secs;
let base = timestamps.instant();
let mut tx = mic_tx;
- let beep_chunk = beep_chunk.clone();
tokio::spawn(async move {
use futures::SinkExt;
let first_chunk = (FIXTURE_MIC_START_SECS / AUDIO_CHUNK_SECS).ceil() as usize;
@@ -748,7 +747,6 @@ mod fixture {
let events = pattern.events.clone();
let base = timestamps.instant();
let mut tx = sys_tx;
- let beep_chunk = beep_chunk.clone();
tokio::spawn(async move {
use futures::SinkExt;
for &event in &events {
@@ -912,11 +910,7 @@ mod fixture {
keyboard_segments: Vec::new(),
audio_segments: Vec::new(),
}),
- clips: vec![ClipConfiguration {
- index: 0,
- offsets,
- ..Default::default()
- }],
+ clips: vec![ClipConfiguration { index: 0, offsets }],
..Default::default()
};
project_config
diff --git a/crates/recording/src/studio_recording.rs b/crates/recording/src/studio_recording.rs
index 463a41a00..a735afdf0 100644
--- a/crates/recording/src/studio_recording.rs
+++ b/crates/recording/src/studio_recording.rs
@@ -1133,7 +1133,6 @@ async fn stop_recording(
.map(|(i, segment)| ClipConfiguration {
index: i as u32,
offsets: segment.calculate_audio_offsets(),
- ..Default::default()
})
.collect::<Vec<_>>()
});