Skip to content

Commit 81c84d3

Browse files
committed
fmt
1 parent c882537 commit 81c84d3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

worker-build/src/binary.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl BinaryDep for WasmOpt {
262262

263263
pub struct WasmBindgen<'a>(pub &'a str);
264264

265-
impl<'a> BinaryDep for WasmBindgen<'a> {
265+
impl BinaryDep for WasmBindgen<'_> {
266266
fn full_name(&self) -> &'static str {
267267
"Wasm Bindgen"
268268
}

worker-build/src/build/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ impl Build {
394394
info!("Installing wasm-bindgen-cli...");
395395
use crate::binary::{GetBinary, WasmBindgen};
396396
let (bindgen, bindgen_override) =
397-
WasmBindgen(&self.wasm_bindgen_version.as_ref().unwrap()).get_binary(None)?;
397+
WasmBindgen(self.wasm_bindgen_version.as_ref().unwrap()).get_binary(None)?;
398398
self.bindgen = Some(bindgen);
399399
self.bindgen_override = bindgen_override;
400400
info!("Installing wasm-bindgen-cli was successful.");

worker-build/src/lockfile.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use serde::Deserialize;
1515
#[derive(Clone, Debug, Default, Deserialize)]
1616
pub struct Lockfile {
1717
package: Vec<Package>,
18-
root_package_name: Option<String>
18+
root_package_name: Option<String>,
1919
}
2020

2121
/// This struct represents a single package entry in `Cargo.lock`
@@ -70,13 +70,13 @@ impl Lockfile {
7070
}
7171
Ok(version)
7272
} else {
73-
return Err(DepCheckError::VersionError(
73+
Err(DepCheckError::VersionError(
7474
format!(
7575
"Ensure that you have dependency {}",
7676
cargo_dep_error(lib_name, cur_version)
7777
),
7878
None,
79-
));
79+
))
8080
}
8181
}
8282

0 commit comments

Comments
 (0)