File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ impl BinaryDep for WasmOpt {
262262
263263pub 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 }
Original file line number Diff line number Diff 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." ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use serde::Deserialize;
1515#[ derive( Clone , Debug , Default , Deserialize ) ]
1616pub 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
You can’t perform that action at this time.
0 commit comments