From 8530a2ef47c45e278883cddd4c2b569c6364704d Mon Sep 17 00:00:00 2001 From: "Raymond E. Pasco" Date: Wed, 30 Nov 2022 03:15:38 -0500 Subject: [PATCH] maint: fix incorrect clippy placation in previous merge --- apps/src/lib/node/ledger/shell/init_chain.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/src/lib/node/ledger/shell/init_chain.rs b/apps/src/lib/node/ledger/shell/init_chain.rs index 3a0e0bc08f..d025b2753f 100644 --- a/apps/src/lib/node/ledger/shell/init_chain.rs +++ b/apps/src/lib/node/ledger/shell/init_chain.rs @@ -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")]