diff options
author | RyanSquared <ryan@hashbang.sh> | 2023-11-05 14:27:19 -0600 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2023-12-21 16:18:02 +0100 |
commit | 37c53c8a5a37ae912437ab0f2beae938b5b9e48a (patch) | |
tree | 812181f5b3282459fb7ec524a9fbc0578973d52e /openpgp/src | |
parent | b20d708952f0031273068f1d0d20aec640d31857 (diff) |
openpgp: Make VerificationError implement std::error::Error
- This allows the use of `Into::into(e)` in `VerificationHandler` to
transform the error into an `anyhow::Error`.
Diffstat (limited to 'openpgp/src')
-rw-r--r-- | openpgp/src/parse/stream.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index 32f55362..46188fd0 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -317,6 +317,8 @@ impl<'a> std::fmt::Display for VerificationError<'a> { } } +impl<'a> std::error::Error for VerificationError<'a> {} + impl<'a> From<VerificationError<'a>> for Error { fn from(e: VerificationError<'a>) -> Self { use self::VerificationError::*; |