From b7a84200a68aac8674ac76f9ba6ee7943ad67c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesper=20H=C3=A5kansson?= Date: Sun, 7 Oct 2018 17:28:23 +0200 Subject: [PATCH] chore: Run rustfmt --- src/binaries.rs | 6 ++++-- src/bindgen.rs | 8 ++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/binaries.rs b/src/binaries.rs index e160186..ba7a1ec 100644 --- a/src/binaries.rs +++ b/src/binaries.rs @@ -175,7 +175,8 @@ where .map(|s| s.to_string_lossy()) .collect::>() .join(", "), - )).into()) + )) + .into()) } } @@ -226,7 +227,8 @@ where .map(|s| s.to_string_lossy()) .collect::>() .join(", "), - )).into()) + )) + .into()) } } diff --git a/src/bindgen.rs b/src/bindgen.rs index e6e9f54..68e9b60 100644 --- a/src/bindgen.rs +++ b/src/bindgen.rs @@ -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!(