Skip to content

Commit

Permalink
Replace ok_or with ok_or_else (MystenLabs#9102)
Browse files Browse the repository at this point in the history
  • Loading branch information
benr-ml authored Mar 10, 2023
1 parent 92df778 commit 73dcf13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sui-types/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1361,7 +1361,7 @@ impl<const STRONG_THRESHOLD: bool> AuthorityQuorumSignInfo<STRONG_THRESHOLD> {
map.insert(
committee
.authority_index(pk)
.ok_or(SuiError::UnknownSigner {
.ok_or_else(|| SuiError::UnknownSigner {
signer: Some(pk.concise().to_string()),
index: None,
committee: Box::new(committee.clone()),
Expand Down

0 comments on commit 73dcf13

Please sign in to comment.