Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RCasatta committed Aug 24, 2023
1 parent 729b096 commit 048beea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 048beea

Please sign in to comment.