master
Ashley Williams 6 years ago
parent b908d4dfd4
commit a0af7b974a
  1. 4
      src/build.rs
  2. 2
      src/command/build.rs
  3. 2
      src/command/test.rs

@ -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() {

@ -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(())
}

@ -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(())
}

Loading…
Cancel
Save