Skip to content

Commit

Permalink
maint: fix incorrect clippy placation in previous merge
Browse files Browse the repository at this point in the history
  • Loading branch information
juped committed Nov 30, 2022
1 parent 40a44cf commit 8530a2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/src/lib/node/ledger/shell/init_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ where
staked_ratio,
pos_inflation_amount,
} = genesis.parameters;
// borrow necessary for release build, annoys clippy on dev build
#[allow(clippy::needless_borrow)]
let implicit_vp =
wasm_loader::read_wasm(&self.wasm_dir, implicit_vp_code_path)
wasm_loader::read_wasm(&self.wasm_dir, &implicit_vp_code_path)
.map_err(Error::ReadingWasm)?;
// In dev, we don't check the hash
#[cfg(feature = "dev")]
Expand Down

0 comments on commit 8530a2e

Please sign in to comment.