Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
clippy
Richie McIlroy52cc4e19a972
diff --git a/crates/cap-test/src/matrix/runner.rs b/crates/cap-test/src/matrix/runner.rsindex f1fff5be7..92cfc0589 100644--- a/crates/cap-test/src/matrix/runner.rs+++ b/crates/cap-test/src/matrix/runner.rs@@ -70,7 +70,7 @@ impl MatrixRunner {let mut results = Vec::new();for test_case in &self.test_cases {- progress.set_message(format!("{}", test_case.name));+ progress.set_message(test_case.name.to_string());let result = self.run_test_case(test_case).await;results.push(result);diff --git a/crates/cap-test/src/suites/recording.rs b/crates/cap-test/src/suites/recording.rsindex 9ce320c94..6ee7d45f5 100644--- a/crates/cap-test/src/suites/recording.rs+++ b/crates/cap-test/src/suites/recording.rs@@ -198,11 +198,7 @@ impl RecordingTestRunner {.map(|v| v.frame_count).unwrap_or(expected_frames);let frames_received = expected_frames;- let frames_dropped = if frames_received > frames_encoded {- frames_received - frames_encoded- } else {- 0- };+ let frames_dropped = frames_received.saturating_sub(frames_encoded);let actual_fps = if total_duration.as_secs_f64() > 0.0 {frames_encoded as f64 / total_duration.as_secs_f64()diff --git a/crates/cap-test/src/suites/sync.rs b/crates/cap-test/src/suites/sync.rsindex d3be6edaa..9f23844fb 100644--- a/crates/cap-test/src/suites/sync.rs+++ b/crates/cap-test/src/suites/sync.rs@@ -68,7 +68,7 @@ pub async fn run_suite(hardware: &DiscoveredHardware, duration: u64) -> Result<Tdropped: 0,drop_rate_percent: 0.0,effective_fps: metrics.video_frames as f64 / metrics.duration_secs,- target_fps: fps as u32,+ target_fps: fps,},latency_ms: LatencyMetrics {avg: 5.0,