Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
CHr15F0x committed May 20, 2022
1 parent 74abd37 commit d9e813f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/pathfinder/src/state/sync/l2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,7 @@ async fn deploy_contracts(
let contract = state_diff
.deployed_contracts
.iter()
.find_map(|contract| match contract.contract_hash == contract_hash {
true => Some(contract),
false => None,
})
.find(|contract| contract.contract_hash == contract_hash)
.unwrap();

let contract = download_and_compress_contract(contract, sequencer)
Expand Down

0 comments on commit d9e813f

Please sign in to comment.