mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
rust impl stdError trait (#1890)
* impl stdError trait * Update CONTRIBUTORS
This commit is contained in:
parent
14546e5d6b
commit
b4cffe2339
2 changed files with 3 additions and 0 deletions
|
@ -101,6 +101,7 @@ Patric Cunha <patricc@agap2.pt>
|
||||||
Brayan Oliveira <github.com/BrayanDSO>
|
Brayan Oliveira <github.com/BrayanDSO>
|
||||||
Luka Warren <github.com/lukawarren>
|
Luka Warren <github.com/lukawarren>
|
||||||
wisherhxl <wisherhxl@gmail.com>
|
wisherhxl <wisherhxl@gmail.com>
|
||||||
|
dobefore <1432338032@qq.com>
|
||||||
|
|
||||||
********************
|
********************
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,8 @@ pub enum AnkiError {
|
||||||
ImportError(ImportError),
|
ImportError(ImportError),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::error::Error for AnkiError {}
|
||||||
|
|
||||||
impl Display for AnkiError {
|
impl Display for AnkiError {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
write!(f, "{:?}", self)
|
write!(f, "{:?}", self)
|
||||||
|
|
Loading…
Reference in a new issue