@@ -36,8 +36,7 @@ fn generate_test_video(output_path: &Path, duration_secs: u32) -> Result<(), Str
3636 "lavfi" ,
3737 "-i" ,
3838 & format ! (
39- "testsrc=duration={}:size={}x{}:rate={}" ,
40- duration_secs, TEST_VIDEO_WIDTH , TEST_VIDEO_HEIGHT , TEST_VIDEO_FPS
39+ "testsrc=duration={duration_secs}:size={TEST_VIDEO_WIDTH}x{TEST_VIDEO_HEIGHT}:rate={TEST_VIDEO_FPS}"
4140 ) ,
4241 "-c:v" ,
4342 "libx264" ,
@@ -137,7 +136,7 @@ async fn run_export(project_path: PathBuf, fps: u32) -> Result<(PathBuf, Duratio
137136 } ;
138137
139138 let total_frames = exporter_base. total_frames ( fps) ;
140- println ! ( "Starting export of {} frames at {} fps" , total_frames , fps ) ;
139+ println ! ( "Starting export of {total_frames } frames at {fps } fps" ) ;
141140
142141 let start = Instant :: now ( ) ;
143142 let last_frame = Arc :: new ( AtomicU32 :: new ( 0 ) ) ;
@@ -185,7 +184,7 @@ async fn test_export_35_minute_video() -> Result<(), Box<dyn std::error::Error>>
185184 let project_dir = temp_dir. path ( ) . to_path_buf ( ) ;
186185
187186 let duration_secs = TEST_VIDEO_DURATION_SECS ;
188- println ! ( "Creating Cap project structure in {:?}" , project_dir ) ;
187+ println ! ( "Creating Cap project structure in {project_dir :?}" ) ;
189188 create_cap_project ( & project_dir, duration_secs) ?;
190189
191190 let video_path = project_dir. join ( "content/display.mp4" ) ;
@@ -215,7 +214,7 @@ async fn test_export_35_minute_video() -> Result<(), Box<dyn std::error::Error>>
215214 output_path. display( )
216215 ) ;
217216
218- let expected_frames = ( duration_secs * 30 ) as u32 ;
217+ let expected_frames = duration_secs * 30 ;
219218 let tolerance = expected_frames / 100 ;
220219 assert ! (
221220 frames >= expected_frames - tolerance,
@@ -245,7 +244,7 @@ async fn test_export_10_minute_video() -> Result<(), Box<dyn std::error::Error>>
245244 let temp_dir = TempDir :: new ( ) ?;
246245 let project_dir = temp_dir. path ( ) . to_path_buf ( ) ;
247246
248- println ! ( "Creating Cap project structure in {:?}" , project_dir ) ;
247+ println ! ( "Creating Cap project structure in {project_dir :?}" ) ;
249248 create_cap_project ( & project_dir, duration_secs) ?;
250249
251250 let video_path = project_dir. join ( "content/display.mp4" ) ;
@@ -266,7 +265,7 @@ async fn test_export_10_minute_video() -> Result<(), Box<dyn std::error::Error>>
266265 output_path. display( )
267266 ) ;
268267
269- let expected_frames = ( duration_secs * 30 ) as u32 ;
268+ let expected_frames = duration_secs * 30 ;
270269 let tolerance = expected_frames / 100 ;
271270 assert ! (
272271 frames >= expected_frames - tolerance,
@@ -296,7 +295,7 @@ async fn test_export_55_minute_video() -> Result<(), Box<dyn std::error::Error>>
296295 let temp_dir = TempDir :: new ( ) ?;
297296 let project_dir = temp_dir. path ( ) . to_path_buf ( ) ;
298297
299- println ! ( "Creating Cap project structure in {:?}" , project_dir ) ;
298+ println ! ( "Creating Cap project structure in {project_dir :?}" ) ;
300299 create_cap_project ( & project_dir, duration_secs) ?;
301300
302301 let video_path = project_dir. join ( "content/display.mp4" ) ;
@@ -323,7 +322,7 @@ async fn test_export_55_minute_video() -> Result<(), Box<dyn std::error::Error>>
323322 output_path. display( )
324323 ) ;
325324
326- let expected_frames = ( duration_secs * 30 ) as u32 ;
325+ let expected_frames = duration_secs * 30 ;
327326 let tolerance = expected_frames / 100 ;
328327 assert ! (
329328 frames >= expected_frames - tolerance,
0 commit comments