None=>bail!("Something went wrong! We couldn't determine your version of the wasm-bindgen CLI. We were supposed to set that up for you, so it's likely not your fault! You should file an issue: https://github.com/rustwasm/wasm-pack/issues/new?template=bug_report.md.")
.nth(1)
}
.map(|v|{
info!(
"Checking installed `{}` version == expected version: {} == {}",
tool,v,&expected_version
);
Ok(v==expected_version)
})
.unwrap_or(Ok(false))
})
.unwrap_or(Ok(false))
}
}
/// Downloads a precompiled copy of the tool, if available.
/// Downloads a precompiled copy of the tool, if available.