From 38f4c6118ca7856acda2535c4361c67bfdac4134 Mon Sep 17 00:00:00 2001 From: Federico Gimenez Date: Tue, 9 Jul 2024 11:47:14 +0200 Subject: [PATCH] chore: fix clippy warnings for needless_borrows_for_generic_args (#9387) --- crates/e2e-test-utils/src/wallet.rs | 2 +- crates/rpc/rpc-layer/src/auth_layer.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/e2e-test-utils/src/wallet.rs b/crates/e2e-test-utils/src/wallet.rs index f8a4230ee940..d24ee2d3f0e4 100644 --- a/crates/e2e-test-utils/src/wallet.rs +++ b/crates/e2e-test-utils/src/wallet.rs @@ -36,7 +36,7 @@ impl Wallet { let mut wallets = Vec::with_capacity(self.amount); for idx in 0..self.amount { let builder = - builder.clone().derivation_path(&format!("{derivation_path}{idx}")).unwrap(); + builder.clone().derivation_path(format!("{derivation_path}{idx}")).unwrap(); let wallet = builder.build().unwrap().with_chain_id(Some(self.chain_id)); wallets.push(wallet) } diff --git a/crates/rpc/rpc-layer/src/auth_layer.rs b/crates/rpc/rpc-layer/src/auth_layer.rs index 0a11ae8024f6..255273194a37 100644 --- a/crates/rpc/rpc-layer/src/auth_layer.rs +++ b/crates/rpc/rpc-layer/src/auth_layer.rs @@ -232,7 +232,7 @@ mod tests { let body = r#"{"jsonrpc": "2.0", "method": "greet_melkor", "params": [], "id": 1}"#; let response = client - .post(&format!("http://{AUTH_ADDR}:{AUTH_PORT}")) + .post(format!("http://{AUTH_ADDR}:{AUTH_PORT}")) .bearer_auth(jwt.unwrap_or_default()) .body(body) .header(header::CONTENT_TYPE, "application/json")