diff --git a/src/rfc.rs b/src/rfc.rs index 34204a7..5863bb6 100644 --- a/src/rfc.rs +++ b/src/rfc.rs @@ -14,6 +14,8 @@ pub enum Rfc6238Error { SecretTooSmall(usize), } +impl std::error::Error for Rfc6238Error {} + impl std::fmt::Display for Rfc6238Error { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { diff --git a/src/url_error.rs b/src/url_error.rs index 76ef73f..3d63de2 100644 --- a/src/url_error.rs +++ b/src/url_error.rs @@ -22,6 +22,8 @@ pub enum TotpUrlError { AccountNameDecoding(String), } +impl std::error::Error for TotpUrlError {} + impl std::fmt::Display for TotpUrlError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self {