We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b6c1f0 commit 3c9079cCopy full SHA for 3c9079c
src/crypto/sealed.rs
@@ -43,9 +43,9 @@ impl Sealed {
43
self.inner()
44
.attributes
45
.get(name)
46
- .ok_or(SealError::MissingAttribute(name.to_string()))?
+ .ok_or_else(|| SealError::MissingAttribute(name.to_string()))?
47
.as_ciphertext()
48
- .ok_or(SealError::InvalidCiphertext(name.to_string()))
+ .ok_or_else(|| SealError::InvalidCiphertext(name.to_string()))
49
})
50
.collect::<Result<Vec<&str>, SealError>>()?;
51
0 commit comments