Use thiserror macro to derive Error + Display traits
This removes the manual implementation of Display + Error for ASN1EncodeErr and uses the derive macro from `thiserror` to add std Error and Display implementations for ANS1EncodeErr and ASN1DecodeErr.
This commit is contained in:
@@ -13,6 +13,7 @@ edition = "2018"
|
||||
chrono = { default-features = false, features = ["alloc"], version = "0.4" }
|
||||
num-bigint = { default-features = false, version = "0.3" }
|
||||
num-traits = { default-features = false, version = "0.2" }
|
||||
thiserror = { default-features = false, version = "1" }
|
||||
|
||||
[dev-dependencies]
|
||||
quickcheck = "0.9"
|
||||
|
||||
Reference in New Issue
Block a user