diff options
Diffstat (limited to '')
-rw-r--r-- | rust/src/asn1/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/src/asn1/mod.rs b/rust/src/asn1/mod.rs index 4b77b0c..7496d44 100644 --- a/rust/src/asn1/mod.rs +++ b/rust/src/asn1/mod.rs @@ -33,7 +33,7 @@ pub struct Asn1<'a>(Vec<BerObject<'a>>); enum Asn1DecodeError { InvalidKeywordParameter, MaxFrames, - BerError(Err<der_parser::error::BerError>), + BerError, } /// Enumeration of Asn1 checks @@ -282,8 +282,8 @@ impl From<std::num::TryFromIntError> for Asn1DecodeError { } impl From<Err<der_parser::error::BerError>> for Asn1DecodeError { - fn from(e: Err<der_parser::error::BerError>) -> Asn1DecodeError { - Asn1DecodeError::BerError(e) + fn from(_e: Err<der_parser::error::BerError>) -> Asn1DecodeError { + Asn1DecodeError::BerError } } |