@@ -160,15 +160,15 @@ mod common {
160160 ) -> Result < ( ) > {
161161 let header = mbed_include_dir. clone ( ) + "/psa/crypto.h" ;
162162
163- println ! ( "using mbedtls include directory of: {}" , mbed_include_dir ) ;
164- println ! ( "cargo:rerun-if-changed={}" , header ) ;
163+ println ! ( "using mbedtls include directory of: {mbed_include_dir}" ) ;
164+ println ! ( "cargo:rerun-if-changed={header}" ) ;
165165
166166 let out_dir = env:: var ( "OUT_DIR" ) . unwrap ( ) ;
167167
168168 // Common shim builder settings
169169 let mut shim_builder = bindgen:: Builder :: default ( )
170- . clang_arg ( format ! ( "-I{}" , out_dir ) )
171- . clang_arg ( format ! ( "-I{}" , mbed_include_dir ) )
170+ . clang_arg ( format ! ( "-I{out_dir}" ) )
171+ . clang_arg ( format ! ( "-I{mbed_include_dir}" ) )
172172 . header ( "src/c/shim.h" )
173173 . blocklist_type ( "max_align_t" )
174174 . generate_comments ( false )
@@ -181,7 +181,7 @@ mod common {
181181
182182 if !external_mbedtls {
183183 shim_builder =
184- shim_builder. clang_arg ( format ! ( "-DMBEDTLS_CONFIG_FILE=\" {}\" " , CONFIG_FILE ) ) ;
184+ shim_builder. clang_arg ( format ! ( "-DMBEDTLS_CONFIG_FILE=\" {CONFIG_FILE }\" " ) ) ;
185185 }
186186
187187 // Build the bindings
@@ -219,7 +219,7 @@ mod common {
219219 . cargo_metadata ( metadata) ;
220220
221221 if !external_mbedtls {
222- _ = cfg. flag ( & format ! ( "-DMBEDTLS_CONFIG_FILE=\" {}\" " , CONFIG_FILE ) ) ;
222+ _ = cfg. flag ( format ! ( "-DMBEDTLS_CONFIG_FILE=\" {CONFIG_FILE }\" " ) ) ;
223223 }
224224
225225 cfg. try_compile ( shimlib_name)
@@ -319,7 +319,7 @@ mod operations {
319319
320320 // Build the MbedTLS libraries
321321 let mbed_build_path = Config :: new ( & mbedtls_dir)
322- . cflag ( format ! ( "-I{}" , out_dir ) )
322+ . cflag ( format ! ( "-I{out_dir}" ) )
323323 . cflag ( format ! (
324324 "-DMBEDTLS_CONFIG_FILE='\" {}\" '" ,
325325 common:: CONFIG_FILE
@@ -336,8 +336,8 @@ mod operations {
336336 let link_type = if link_statically { "static" } else { "dylib" } ;
337337
338338 // Request rustc to link the Mbed Crypto library
339- println ! ( "cargo:rustc-link-search=native={}" , lib_path , ) ;
340- println ! ( "cargo:rustc-link-lib={}=mbedcrypto" , link_type ) ;
339+ println ! ( "cargo:rustc-link-search=native={lib_path}" , ) ;
340+ println ! ( "cargo:rustc-link-lib={link_type }=mbedcrypto" ) ;
341341 }
342342
343343 #[ cfg( not( feature = "prefix" ) ) ]
0 commit comments