@@ -13,7 +13,7 @@ use std::{fmt::Display, fmt::Write as _};
13
13
use crate :: ident:: { is_ascii_ident, is_ident} ;
14
14
15
15
fn emit ( directive : & str , value : impl Display ) {
16
- println ! ( "cargo::{}={}" , directive , value ) ;
16
+ println ! ( "cargo::{directive }={value}" ) ;
17
17
}
18
18
19
19
/// The `rerun-if-changed` instruction tells Cargo to re-run the build script if the
@@ -97,7 +97,7 @@ pub fn rustc_link_arg_bin(bin: &str, flag: &str) {
97
97
if flag. contains ( [ ' ' , '\n' ] ) {
98
98
panic ! ( "cannot emit rustc-link-arg-bin: invalid flag {flag:?}" ) ;
99
99
}
100
- emit ( "rustc-link-arg-bin" , format_args ! ( "{}={}" , bin , flag ) ) ;
100
+ emit ( "rustc-link-arg-bin" , format_args ! ( "{bin }={flag}" ) ) ;
101
101
}
102
102
103
103
/// The `rustc-link-arg-bins` instruction tells Cargo to pass the
@@ -433,5 +433,5 @@ pub fn metadata(key: &str, val: &str) {
433
433
panic ! ( "cannot emit metadata: invalid value {val:?}" ) ;
434
434
}
435
435
436
- emit ( "metadata" , format_args ! ( "{}={}" , key , val ) ) ;
436
+ emit ( "metadata" , format_args ! ( "{key }={val}" ) ) ;
437
437
}
0 commit comments