From 048beeaf9cf8becab78a6e6b01b1868e0ca97b3b Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Thu, 24 Aug 2023 14:16:18 +0200 Subject: [PATCH] clippy fixes --- src/state.rs | 2 +- tests/e2e.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state.rs b/src/state.rs index 84f5e53..5e34664 100644 --- a/src/state.rs +++ b/src/state.rs @@ -150,7 +150,7 @@ impl SharedState { let tx_in_block = self.tx_in_block.lock().await; match (txs.get(&txid), tx_in_block.get(&txid)) { (Some(tx), Some(block_hash)) => { - let block_hash = BlockHash::from_slice(&block_hash) + let block_hash = BlockHash::from_slice(block_hash) .expect("cache contains only block hashes"); log::trace!("tx hit"); return Ok((SerTx(tx.to_vec()), Some(block_hash))); diff --git a/tests/e2e.rs b/tests/e2e.rs index 81fef74..600c11e 100644 --- a/tests/e2e.rs +++ b/tests/e2e.rs @@ -81,7 +81,7 @@ fn check_pages() { let _fbbe_proc = FbbeProcess::new(exe, args); let get = |url: String| { - minreq::get(&url) + minreq::get(url) .send() .unwrap() .as_str()