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

Commit

Permalink
replace ok_or_else() with ok_or() when first one not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
AronisAt79 committed Nov 10, 2023
1 parent d80a1b4 commit 3a0a27f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions integration-tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ fn main() -> Result<(), BuildError> {
reason: err.to_string(),
})?
.pop()
.ok_or_else(|| BuildError::ArtifactError)?
.ok_or(BuildError::ArtifactError)?
// ethers-solc: explicitly indicate the EvmVersion that corresponds to the zkevm
// circuit's supported Upgrade, e.g. `London/Shanghai/...` specifications.
.evm_version(EvmVersion::London);
Expand Down Expand Up @@ -149,15 +149,15 @@ fn main() -> Result<(), BuildError> {
}
})?;

let contract: CompactContractRef = compiled_binding.get(p, name).ok_or_else(|| {
let contract: CompactContractRef = compiled_binding.get(p, name).ok_or(
BuildError::FailedToLoadCompactContractRef
})?;
)?;

let abi = contract
.abi
.ok_or_else(|| {
.ok_or(
BuildError::ErrorLoadingContractAbi
})?
)?
.clone();

let bin = contract
Expand Down

0 comments on commit 3a0a27f

Please sign in to comment.