@@ -270,7 +270,12 @@ impl Build {
270
270
271
271
/// Execute this `Build` command.
272
272
pub fn run ( & mut self ) -> Result < ( ) > {
273
- let process_steps = Build :: get_process_steps ( self . mode , self . no_pack , self . no_opt , self . crate_data . get_target_triple ( ) ) ;
273
+ let process_steps = Build :: get_process_steps (
274
+ self . mode ,
275
+ self . no_pack ,
276
+ self . no_opt ,
277
+ self . crate_data . get_target_triple ( ) ,
278
+ ) ;
274
279
275
280
let started = Instant :: now ( ) ;
276
281
@@ -299,7 +304,7 @@ impl Build {
299
304
mode : InstallMode ,
300
305
no_pack : bool ,
301
306
no_opt : bool ,
302
- target_triple : String
307
+ target_triple : String ,
303
308
) -> Vec < ( & ' static str , BuildStep ) > {
304
309
macro_rules! steps {
305
310
( $( $name: ident) ,+) => {
@@ -330,7 +335,7 @@ impl Build {
330
335
step_create_dir,
331
336
step_copy_emscripten_outputs,
332
337
] ) ;
333
- } else {
338
+ } else {
334
339
steps. extend ( steps ! [
335
340
step_build_wasm,
336
341
step_create_dir,
@@ -378,7 +383,12 @@ impl Build {
378
383
379
384
fn step_build_wasm ( & mut self ) -> Result < ( ) > {
380
385
info ! ( "Building wasm..." ) ;
381
- build:: cargo_build_wasm ( & self . crate_path , self . profile . clone ( ) , self . crate_data . get_target_triple ( ) , & self . extra_options ) ?;
386
+ build:: cargo_build_wasm (
387
+ & self . crate_path ,
388
+ self . profile . clone ( ) ,
389
+ self . crate_data . get_target_triple ( ) ,
390
+ & self . extra_options ,
391
+ ) ?;
382
392
383
393
info ! (
384
394
"wasm built at {:#?}." ,
@@ -476,7 +486,9 @@ impl Build {
476
486
BuildProfile :: Custom ( profile_name) => & profile_name. clone ( ) ,
477
487
} ;
478
488
479
- let wasm_path = self . crate_data . target_directory ( )
489
+ let wasm_path = self
490
+ . crate_data
491
+ . target_directory ( )
480
492
. join ( self . crate_data . get_target_triple ( ) )
481
493
. join ( profile_name)
482
494
. join ( self . crate_data . crate_name ( ) ) ;
0 commit comments