@@ -216,7 +216,7 @@ impl RustApp {
216216 Some ( cargo_profile) => {
217217 let cargo_profile = & cargo_profile. value ;
218218 if let Some ( config_cargo_profile) = & cfg. cargo_profile {
219- log:: warn!( "Cargo profile from configuration ({config_cargo_profile}) will be overridden with HTML file's more specific setting ({})" , cargo_profile ) ;
219+ log:: warn!( "Cargo profile from configuration ({config_cargo_profile}) will be overridden with HTML file's more specific setting ({cargo_profile })" ) ;
220220 }
221221 Some ( cargo_profile. clone ( ) )
222222 }
@@ -563,7 +563,7 @@ impl RustApp {
563563 . context ( "error creating wasm-bindgen output dir" ) ?;
564564
565565 // Build up args for calling wasm-bindgen.
566- let arg_out_path = format ! ( "--out-dir={}" , bindgen_out ) ;
566+ let arg_out_path = format ! ( "--out-dir={bindgen_out}" ) ;
567567 let arg_out_name = format ! ( "--out-name={}" , & self . name) ;
568568 let target_wasm = wasm_path. to_string_lossy ( ) . to_string ( ) ;
569569 let target_type = format ! ( "--target={}" , self . wasm_bindgen_target) ;
@@ -607,21 +607,20 @@ impl RustApp {
607607 apply_data_target_path ( format ! ( "{hashed_name}_bg.wasm" ) , & self . target_path ) ;
608608
609609 let js_name = format ! ( "{}.js" , self . name) ;
610- let hashed_js_name =
611- apply_data_target_path ( format ! ( "{}.js" , hashed_name) , & self . target_path ) ;
610+ let hashed_js_name = apply_data_target_path ( format ! ( "{hashed_name}.js" ) , & self . target_path ) ;
612611 let ts_name = format ! ( "{}.d.ts" , self . name) ;
613612 let hashed_ts_name =
614- apply_data_target_path ( format ! ( "{}.d.ts" , hashed_name ) , & self . target_path ) ;
613+ apply_data_target_path ( format ! ( "{hashed_name }.d.ts" ) , & self . target_path ) ;
615614
616615 let js_loader_path = bindgen_out. join ( & js_name) ;
617616 let js_loader_path_dist = self . cfg . staging_dist . join ( & hashed_js_name) ;
618617 let wasm_name = format ! ( "{}_bg.wasm" , self . name) ;
619618 let wasm_path = bindgen_out. join ( & wasm_name) ;
620619 let wasm_path_dist = self . cfg . staging_dist . join ( & hashed_wasm_name) ;
621620
622- let hashed_loader_name = self . loader_shim . then ( || {
623- apply_data_target_path ( format ! ( "{}_loader.js" , hashed_name ) , & self . target_path )
624- } ) ;
621+ let hashed_loader_name = self
622+ . loader_shim
623+ . then ( || apply_data_target_path ( format ! ( "{hashed_name}_loader.js" ) , & self . target_path ) ) ;
625624 let loader_shim_path = hashed_loader_name
626625 . as_ref ( )
627626 . map ( |m| self . cfg . staging_dist . join ( m) ) ;
0 commit comments