Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix recording error

Brendan Allan321dd5cab608
diff --git a/Cargo.toml b/Cargo.toml
index 6fd9761ac..cc75182f5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -47,6 +47,9 @@ windows = "0.58.0"
windows-sys = "0.59.0"
windows-capture = "1.4.2"
+[workspace.lints.clippy]
+dbg_macro = "deny"
+
[patch.crates-io]
screencapturekit = { git = "https://github.com/CapSoftware/screencapturekit-rs", rev = "7ff1e103742e56c8f6c2e940b5e52684ed0bed69" } # branch = "cap-main"
wry = { git = "https://github.com/CapSoftware/wry", rev = "293f510" } # branch = "cap"
diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml
index ba9dfe308..5858e981f 100644
--- a/apps/desktop/src-tauri/Cargo.toml
+++ b/apps/desktop/src-tauri/Cargo.toml
@@ -123,3 +123,6 @@ codegen-units = 1 # Compile crates one after another so the compiler can optimiz
lto = true # Enables link to optimizations
opt-level = "s" # Optimize for binary size
debug = true
+
+[lints]
+workspace = true
diff --git a/apps/desktop/src-tauri/src/lib.rs b/apps/desktop/src-tauri/src/lib.rs
index 4b5b564d5..8a5a2f7e3 100644
--- a/apps/desktop/src-tauri/src/lib.rs
+++ b/apps/desktop/src-tauri/src/lib.rs
@@ -176,7 +176,6 @@ impl App {
.ok_or_else(|| "Failed to get capture target name".to_string())?;
sentry::configure_scope(move |scope| {
- dbg!(options.capture_target.get_title());
let mut ctx = std::collections::BTreeMap::new();
ctx.insert("capture_target".into(), capture_target_title.into());
ctx.insert(
diff --git a/apps/desktop/src-tauri/src/recording.rs b/apps/desktop/src-tauri/src/recording.rs
index 36801088d..249859197 100644
--- a/apps/desktop/src-tauri/src/recording.rs
+++ b/apps/desktop/src-tauri/src/recording.rs
@@ -309,7 +309,7 @@ pub async fn start_recording(
let state_mtx = Arc::clone(&state_mtx);
async move {
fail!("recording::wait_actor_done");
- let Ok(_) = dbg!(actor_done_rx.await) else {
+ let Ok(_) = actor_done_rx.await else {
return;
};
diff --git a/apps/desktop/src-tauri/src/upload.rs b/apps/desktop/src-tauri/src/upload.rs
index 9da38d3a5..29d30f34e 100644
--- a/apps/desktop/src-tauri/src/upload.rs
+++ b/apps/desktop/src-tauri/src/upload.rs
@@ -837,7 +837,6 @@ impl InstantMultipartUpload {
pre_created_video: VideoUploadInfo,
realtime_video_done: Option<Receiver<()>>,
) -> Result<(), String> {
- dbg!(&video_id, &file_path);
use std::time::Duration;
use tokio::sync::mpsc;
use tokio::time::sleep;
@@ -1351,7 +1350,6 @@ impl InstantMultipartUpload {
}
};
- dbg!(&complete_data);
if let Some(location) = complete_data.get("location") {
println!("Multipart upload complete. Final S3 location: {location}");
} else {
diff --git a/crates/recording/Cargo.toml b/crates/recording/Cargo.toml
index 14515671d..f6f179867 100644
--- a/crates/recording/Cargo.toml
+++ b/crates/recording/Cargo.toml
@@ -38,3 +38,6 @@ windows = { workspace = true, features = [
"Win32_Graphics_Gdi",
"Win32_UI_WindowsAndMessaging",
] }
+
+[lints]
+workspace = true
diff --git a/crates/recording/src/studio_recording.rs b/crates/recording/src/studio_recording.rs
index 8b04533be..33ee3fb8d 100644
--- a/crates/recording/src/studio_recording.rs
+++ b/crates/recording/src/studio_recording.rs
@@ -138,8 +138,6 @@ pub async fn spawn_studio_recording_actor(
) -> Result<(StudioRecordingHandle, tokio::sync::oneshot::Receiver<()>), RecordingError> {
ensure_dir(&recording_dir)?;
- dbg!(mic_feed.as_ref().unwrap().control_tx.receiver_count());
-
let (done_tx, done_rx) = tokio::sync::oneshot::channel::<()>();
trace!("creating recording actor");