Commit b015a8690e2f1ef8632ada8d240ab7bb30b1671a

Cléo Rebert 2023-10-04T11:07:50

Merge pull request #62 from FliegendeWurst/error-trait Implement Error for SecretParseError

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/secret.rs b/src/secret.rs
index f9ac152..5487870 100644
--- a/src/secret.rs
+++ b/src/secret.rs
@@ -88,6 +88,8 @@ pub enum SecretParseError {
     ParseBase32,
 }
 
+impl std::error::Error for SecretParseError {}
+
 impl std::fmt::Display for SecretParseError {
     fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
         match self {