chore: Run rustfmt

master
Jesper Håkansson 7 years ago
parent 0be4905e31
commit b7a84200a6
  1. 6
      src/binaries.rs
  2. 8
      src/bindgen.rs

@ -175,7 +175,8 @@ where
.map(|s| s.to_string_lossy())
.collect::<Vec<_>>()
.join(", "),
)).into())
))
.into())
}
}
@ -226,7 +227,8 @@ where
.map(|s| s.to_string_lossy())
.collect::<Vec<_>>()
.join(", "),
)).into())
))
.into())
}
}

@ -55,7 +55,10 @@ pub fn install_wasm_bindgen(
}
/// Download a tarball containing a pre-built `wasm-bindgen` binary.
pub fn download_prebuilt_wasm_bindgen(root_path: &Path, version: &str) -> Result<(), failure::Error> {
pub fn download_prebuilt_wasm_bindgen(
root_path: &Path,
version: &str,
) -> Result<(), failure::Error> {
let target = if target::LINUX && target::x86_64 {
"x86_64-unknown-linux-musl"
} else if target::MACOS && target::x86_64 {
@ -65,7 +68,8 @@ pub fn download_prebuilt_wasm_bindgen(root_path: &Path, version: &str) -> Result
} else {
return Err(Error::unsupported(
"there are no pre-built `wasm-bindgen` binaries for this target",
).into());
)
.into());
};
let url = format!(

Loading…
Cancel
Save