Skip to content

Commit 3c9079c

Browse files
coderdanBennett Hardwick
andauthored
Update src/crypto/sealed.rs
Co-authored-by: Bennett Hardwick <bennett@cipherstash.com>
1 parent 6b6c1f0 commit 3c9079c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crypto/sealed.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ impl Sealed {
4343
self.inner()
4444
.attributes
4545
.get(name)
46-
.ok_or(SealError::MissingAttribute(name.to_string()))?
46+
.ok_or_else(|| SealError::MissingAttribute(name.to_string()))?
4747
.as_ciphertext()
48-
.ok_or(SealError::InvalidCiphertext(name.to_string()))
48+
.ok_or_else(|| SealError::InvalidCiphertext(name.to_string()))
4949
})
5050
.collect::<Result<Vec<&str>, SealError>>()?;
5151

0 commit comments

Comments
 (0)