@@ -216,7 +216,7 @@ impl RustApp {
216
216
Some ( cargo_profile) => {
217
217
let cargo_profile = & cargo_profile. value ;
218
218
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 })" ) ;
220
220
}
221
221
Some ( cargo_profile. clone ( ) )
222
222
}
@@ -563,7 +563,7 @@ impl RustApp {
563
563
. context ( "error creating wasm-bindgen output dir" ) ?;
564
564
565
565
// 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}" ) ;
567
567
let arg_out_name = format ! ( "--out-name={}" , & self . name) ;
568
568
let target_wasm = wasm_path. to_string_lossy ( ) . to_string ( ) ;
569
569
let target_type = format ! ( "--target={}" , self . wasm_bindgen_target) ;
@@ -607,21 +607,20 @@ impl RustApp {
607
607
apply_data_target_path ( format ! ( "{hashed_name}_bg.wasm" ) , & self . target_path ) ;
608
608
609
609
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 ) ;
612
611
let ts_name = format ! ( "{}.d.ts" , self . name) ;
613
612
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 ) ;
615
614
616
615
let js_loader_path = bindgen_out. join ( & js_name) ;
617
616
let js_loader_path_dist = self . cfg . staging_dist . join ( & hashed_js_name) ;
618
617
let wasm_name = format ! ( "{}_bg.wasm" , self . name) ;
619
618
let wasm_path = bindgen_out. join ( & wasm_name) ;
620
619
let wasm_path_dist = self . cfg . staging_dist . join ( & hashed_wasm_name) ;
621
620
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 ) ) ;
625
624
let loader_shim_path = hashed_loader_name
626
625
. as_ref ( )
627
626
. map ( |m| self . cfg . staging_dist . join ( m) ) ;
0 commit comments