diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 0eafd0e5e..0727fd2e7 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -101,6 +101,7 @@ Patric Cunha Brayan Oliveira Luka Warren wisherhxl +dobefore <1432338032@qq.com> ******************** diff --git a/rslib/src/error/mod.rs b/rslib/src/error/mod.rs index 4c1eae0a7..fe3a9b56a 100644 --- a/rslib/src/error/mod.rs +++ b/rslib/src/error/mod.rs @@ -51,6 +51,8 @@ pub enum AnkiError { ImportError(ImportError), } +impl std::error::Error for AnkiError {} + impl Display for AnkiError { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "{:?}", self)