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:
Robert Bragg
2021-01-08 13:43:07 +00:00
parent 1a246d5970
commit 559db125d3
2 changed files with 16 additions and 68 deletions

View File

@@ -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"