Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
chore: clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Jul 3, 2021
1 parent 7352b31 commit 75130a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ethers-contract/src/factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl<M: Middleware> Deployer<M> {
.confirmations(self.confs)
.await
.map_err(|_| ContractError::ContractNotDeployed)?
.ok_or_else(|| ContractError::ContractNotDeployed)?;
.ok_or(ContractError::ContractNotDeployed)?;
let address = receipt
.contract_address
.ok_or(ContractError::ContractNotDeployed)?;
Expand Down
2 changes: 1 addition & 1 deletion ethers-middleware/src/transformer/ds_proxy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl DsProxy {
.await?
.await
.map_err(ContractError::ProviderError)?
.ok_or_else(|| ContractError::ContractNotDeployed)?;
.ok_or(ContractError::ContractNotDeployed)?;

// decode the event log to get the address of the deployed contract.
if tx_receipt.status == Some(U64::from(1u64)) {
Expand Down

0 comments on commit 75130a6

Please sign in to comment.