Skip to content

Commit e095fca

Browse files
committed
Fixing details mentioned in review.
1 parent e582d08 commit e095fca

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/bindgen.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ pub fn cargo_install_wasm_bindgen(
2020
.map(|bindgen_path| wasm_bindgen_version_check(&bindgen_path, version))
2121
.unwrap_or(false)
2222
{
23-
let msg = format!("{}WASM-bindgen already installed...", emoji::DOWN_ARROW);
23+
let msg = format!("{}wasm-bindgen already installed...", emoji::DOWN_ARROW);
2424
PBAR.step(step, &msg);
2525
return Ok(());
2626
}
2727

2828
// If the `wasm-bindgen` dependency was not met, and installs are not
2929
// permitted, return a configuration error.
3030
if !install_permitted {
31-
let msg = format!("WASM-bindgen v{} is not installed!", version);
31+
let msg = format!("wasm-bindgen v{} is not installed!", version);
3232
return Error::crate_config(&msg);
3333
}
3434

35-
let msg = format!("{}Installing WASM-bindgen...", emoji::DOWN_ARROW);
35+
let msg = format!("{}Installing wasm-bindgen...", emoji::DOWN_ARROW);
3636
PBAR.step(step, &msg);
3737
let output = Command::new("cargo")
3838
.arg("install")

src/command/build.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ impl Build {
7474
let crate_name = manifest::get_crate_name(&crate_path)?;
7575
let mode = match build_opts.mode.as_str() {
7676
"no-install" => BuildMode::Noinstall,
77-
"normal" => BuildMode::Normal,
7877
_ => BuildMode::Normal,
7978
};
8079
// let build_config = manifest::xxx(&crate_path).xxx();
@@ -107,14 +106,14 @@ impl Build {
107106
info!(&log, "Done in {}.", &duration);
108107
info!(
109108
&log,
110-
"Your WASM pkg is ready to publish at {:#?}.",
109+
"Your wasm pkg is ready to publish at {:#?}.",
111110
&self.crate_path.join("pkg")
112111
);
113112

114113
PBAR.message(&format!("{} Done in {}", emoji::SPARKLE, &duration));
115114

116115
PBAR.message(&format!(
117-
"{} Your WASM pkg is ready to publish at {:#?}.",
116+
"{} Your wasm pkg is ready to publish at {:#?}.",
118117
emoji::PACKAGE,
119118
&self.crate_path.join("pkg")
120119
));
@@ -220,7 +219,7 @@ impl Build {
220219
}
221220

222221
fn step_install_wasm_bindgen(&mut self, step: &Step, log: &Logger) -> Result<(), Error> {
223-
info!(&log, "Identifying WASM-bindgen dependency...");
222+
info!(&log, "Identifying wasm-bindgen dependency...");
224223
let bindgen_version = manifest::get_wasm_bindgen_version(&self.crate_path)?;
225224
info!(&log, "Installing wasm-bindgen-cli...");
226225
let install_permitted = match self.mode {

0 commit comments

Comments
 (0)