@@ -51,8 +51,7 @@ fn main() -> ExitCode {
5151
5252 if outdated_examples. is_empty ( ) {
5353 println ! (
54- "All examples are up-to-date with the latest wasm_opt version: {}" ,
55- latest_wasm_opt
54+ "All examples are up-to-date with the latest wasm_opt version: {latest_wasm_opt}"
5655 ) ;
5756 return ExitCode :: from ( 0 ) ;
5857 }
@@ -62,15 +61,14 @@ fn main() -> ExitCode {
6261 outdated_examples. len( )
6362 ) ;
6463 for example in & outdated_examples {
65- println ! ( " - {}" , example ) ;
64+ println ! ( " - {example}" ) ;
6665 }
67- println ! ( "Latest wasm_opt version is: {}" , latest_wasm_opt ) ;
66+ println ! ( "Latest wasm_opt version is: {latest_wasm_opt}" ) ;
6867 println ! ( "Updating all examples..." ) ;
6968
7069 let updated_count = update_all_examples ( & outdated_example_paths, & latest_wasm_opt) ;
7170 println ! (
72- "Updated {} example configurations to use {}" ,
73- updated_count, latest_wasm_opt
71+ "Updated {updated_count} example configurations to use {latest_wasm_opt}"
7472 ) ;
7573
7674 ExitCode :: from ( 0 )
@@ -90,8 +88,7 @@ pub fn update_all_examples(outdated_paths: &[PathBuf], latest_version: &str) ->
9088 re. replace ( & content, |_: & regex:: Captures | {
9189 format ! (
9290 r#"[tools]
93- wasm_opt = "{}""# ,
94- latest_version
91+ wasm_opt = "{latest_version}""#
9592 )
9693 } )
9794 . to_string ( )
@@ -100,8 +97,7 @@ wasm_opt = "{}""#,
10097 if content. is_empty ( ) {
10198 format ! (
10299 r#"[tools]
103- wasm_opt = "{}""# ,
104- latest_version
100+ wasm_opt = "{latest_version}""#
105101 )
106102 } else {
107103 format ! (
0 commit comments