File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ fn display_replay_info(replay: &broodrep::Replay<std::fs::File>) {
3333 println ! ( " Engine: {}" , replay. engine( ) ) ;
3434
3535 let duration = format_duration ( replay. frames ( ) , replay. game_speed ( ) ) ;
36- println ! ( " Duration: {}" , duration ) ;
36+ println ! ( " Duration: {duration}" ) ;
3737
3838 if let Some ( start_time) = replay. start_time ( ) {
3939 println ! (
@@ -44,12 +44,7 @@ fn display_replay_info(replay: &broodrep::Replay<std::fs::File>) {
4444
4545 println ! ( " Title: {}" , replay. game_title( ) ) ;
4646 let ( width, height) = replay. map_dimensions ( ) ;
47- println ! (
48- " Map: {} ({}x{})" ,
49- replay. map_name( ) ,
50- width,
51- height
52- ) ;
47+ println ! ( " Map: {} ({width}x{height})" , replay. map_name( ) , ) ;
5348 println ! ( ) ;
5449
5550 // Game Settings Section
@@ -92,8 +87,5 @@ fn format_duration(frames: u32, speed: broodrep::GameSpeed) -> String {
9287 let total_seconds = total_duration. as_secs ( ) ;
9388 let minutes = total_seconds / 60 ;
9489 let seconds = total_seconds % 60 ;
95- format ! (
96- "{}:{:02} ({} frames at {})" ,
97- minutes, seconds, frames, speed
98- )
90+ format ! ( "{minutes}:{seconds:02} ({frames} frames at {speed})" )
9991}
You can’t perform that action at this time.
0 commit comments