Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

clippy

Richie McIlroy02b71b31c0e8
diff --git a/crates/recording/examples/synthetic-test-runner.rs b/crates/recording/examples/synthetic-test-runner.rs
index 99adeb18e..22d65a537 100644
--- a/crates/recording/examples/synthetic-test-runner.rs
+++ b/crates/recording/examples/synthetic-test-runner.rs
@@ -10,7 +10,7 @@ use cap_recording::{
use cap_timestamp::Timestamps;
use clap::{Parser, Subcommand};
use std::{
- path::PathBuf,
+ path::{Path, PathBuf},
time::{Duration, Instant},
};
use tokio_util::sync::CancellationToken;
@@ -234,11 +234,7 @@ enum TestResult {
},
}
-async fn run_synthetic_test(
- config: &TestConfig,
- output_dir: &PathBuf,
- test_idx: usize,
-) -> TestResult {
+async fn run_synthetic_test(config: &TestConfig, output_dir: &Path, test_idx: usize) -> TestResult {
let start = Instant::now();
let test_output_dir = output_dir.join(format!("test_{}", test_idx));