Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

cleanup

Brendan Allanfeee8e2e679f
diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rs
index 29415a61a..57f256684 100644
--- a/apps/desktop/src-tauri/src/recording.rs
+++ b/apps/desktop/src-tauri/src/recording.rs
@@ -164,7 +164,6 @@ pub async fn stop_recording(app: AppHandle, state: MutableState<'_, App>) -> Res
return Err("Recording not in progress".to_string())?;
};
- let now = Instant::now();
let completed_recording = current_recording.stop().await.map_err(|e| e.to_string())?;
if let Some(window) = CapWindowId::InProgressRecording.get(&app) {
diff --git a/crates/recording/src/actor.rs b/crates/recording/src/actor.rs
index 5327114e1..33050ac18 100644
--- a/crates/recording/src/actor.rs
+++ b/crates/recording/src/actor.rs
@@ -193,8 +193,6 @@ pub async fn spawn_recording_actor(
let cursors = if let Some(cursor) = pipeline.cursor.take() {
let res = cursor.actor.stop().await;
- dbg!(&res.cursors);
-
std::fs::write(
&cursor.output_path,
serde_json::to_string_pretty(&CursorEvents {
diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rs
index b544458da..ce4139248 100644
--- a/crates/rendering/src/lib.rs
+++ b/crates/rendering/src/lib.rs
@@ -161,7 +161,7 @@ pub struct RenderSegment {
pub async fn render_video_to_channel(
options: RenderOptions,
- mut project: ProjectConfiguration,
+ project: ProjectConfiguration,
sender: mpsc::Sender<RenderedFrame>,
meta: &RecordingMeta,
segments: Vec<RenderSegment>,