@@ -92,7 +92,7 @@ async fn main() {
9292 vec ! [ create_studio_mode_config( duration) ]
9393 }
9494 Some ( Commands :: Resolution { width, height, fps } ) => {
95- println ! ( "Testing resolution {}x{} @ {}fps...\n " , width , height , fps ) ;
95+ println ! ( "Testing resolution {width }x{height } @ {fps }fps...\n " ) ;
9696 vec ! [ TestConfig {
9797 video: Some (
9898 VideoTestConfig :: default ( )
@@ -125,10 +125,7 @@ async fn main() {
125125 return ;
126126 }
127127 Some ( Commands :: Sync { tolerance_ms } ) => {
128- println ! (
129- "Running A/V sync verification tests (tolerance: {}ms)...\n " ,
130- tolerance_ms
131- ) ;
128+ println ! ( "Running A/V sync verification tests (tolerance: {tolerance_ms}ms)...\n " ) ;
132129 sync_test_configs ( duration, * tolerance_ms)
133130 }
134131 } ;
@@ -176,11 +173,11 @@ async fn main() {
176173 }
177174 TestResult :: Failed { error, elapsed } => {
178175 failed += 1 ;
179- println ! ( " \u{2717} FAILED: {}" , error ) ;
176+ println ! ( " \u{2717} FAILED: {error}" ) ;
180177 println ! ( " Duration: {:.2}s\n " , elapsed. as_secs_f64( ) ) ;
181178 }
182179 TestResult :: Skipped { reason } => {
183- println ! ( " - SKIPPED: {}\n " , reason ) ;
180+ println ! ( " - SKIPPED: {reason }\n " ) ;
184181 }
185182 }
186183
@@ -190,17 +187,14 @@ async fn main() {
190187 let total_elapsed = start. elapsed ( ) ;
191188
192189 println ! ( "\n {}" , "=" . repeat( 60 ) ) ;
193- println ! (
194- "Summary: {}/{} passed, {} failed" ,
195- passed, total_tests, failed
196- ) ;
190+ println ! ( "Summary: {passed}/{total_tests} passed, {failed} failed" ) ;
197191 println ! ( "Total time: {:.1}s" , total_elapsed. as_secs_f64( ) ) ;
198192
199193 if failed > 0 {
200194 println ! ( "\n Failed tests:" ) ;
201195 for ( name, result) in & results {
202196 if let TestResult :: Failed { error, .. } = result {
203- println ! ( " - {}: {}" , name , error ) ;
197+ println ! ( " - {name }: {error}" ) ;
204198 }
205199 }
206200 }
@@ -237,10 +231,10 @@ enum TestResult {
237231async fn run_synthetic_test ( config : & TestConfig , output_dir : & Path , test_idx : usize ) -> TestResult {
238232 let start = Instant :: now ( ) ;
239233
240- let test_output_dir = output_dir. join ( format ! ( "test_{}" , test_idx ) ) ;
234+ let test_output_dir = output_dir. join ( format ! ( "test_{test_idx}" ) ) ;
241235 if let Err ( e) = std:: fs:: create_dir_all ( & test_output_dir) {
242236 return TestResult :: Failed {
243- error : format ! ( "Failed to create output directory: {}" , e ) ,
237+ error : format ! ( "Failed to create output directory: {e}" ) ,
244238 elapsed : start. elapsed ( ) ,
245239 } ;
246240 }
@@ -382,13 +376,13 @@ async fn run_synthetic_test(config: &TestConfig, output_dir: &Path, test_idx: us
382376 }
383377 }
384378 Err ( e) => TestResult :: Failed {
385- error : format ! ( "Validation error: {}" , e ) ,
379+ error : format ! ( "Validation error: {e}" ) ,
386380 elapsed,
387381 } ,
388382 }
389383 }
390384 Err ( e) => TestResult :: Failed {
391- error : format ! ( "Recording failed: {}" , e ) ,
385+ error : format ! ( "Recording failed: {e}" ) ,
392386 elapsed,
393387 } ,
394388 }
@@ -859,8 +853,7 @@ fn save_report(path: &PathBuf, results: &[(String, TestResult)]) {
859853 } ;
860854
861855 report. push_str ( & format ! (
862- " {{ \" name\" : \" {}\" , \" status\" : \" {}\" , {} }}" ,
863- name, status, details
856+ " {{ \" name\" : \" {name}\" , \" status\" : \" {status}\" , {details} }}"
864857 ) ) ;
865858
866859 if idx < results. len ( ) - 1 {
0 commit comments