Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
fix: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleygwilliams committed Mar 15, 2019
1 parent b908d4d commit a0af7b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ fn rustup_add_wasm_target() -> Result<(), Error> {

/// Ensure that `rustup` has the `wasm32-unknown-unknown` target installed for
/// current toolchain
pub fn check_for_wasm32_target(step: &Step) -> Result<(), Error> {
pub fn check_for_wasm32_target() -> Result<(), Error> {
let msg = format!("{}Checking for the Wasm target...", emoji::TARGET);
PBAR.step(step, &msg);
PBAR.info(&msg);

// Check if wasm32 target is present, otherwise bail.
match check_wasm32_target() {
Expand Down
2 changes: 1 addition & 1 deletion src/command/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ impl Build {

fn step_check_for_wasm_target(&mut self) -> Result<(), Error> {
info!("Checking for wasm-target...");
build::check_for_wasm32_target(step)?;
build::check_for_wasm32_target()?;
info!("Checking for wasm-target was successful.");
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion src/command/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ impl Test {

fn step_check_for_wasm_target(&mut self) -> Result<(), Error> {
info!("Adding wasm-target...");
build::check_for_wasm32_target(step)?;
build::check_for_wasm32_target()?;
info!("Adding wasm-target was successful.");
Ok(())
}
Expand Down

0 comments on commit a0af7b9

Please sign in to comment.