File tree 3 files changed +13
-0
lines changed
3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,15 @@ impl Display for RetrievalError {
88
88
}
89
89
}
90
90
91
+ impl std:: error:: Error for RetrievalError {
92
+ fn source ( & self ) -> Option < & ( dyn std:: error:: Error + ' static ) > {
93
+ match self {
94
+ Self :: Missing ( _) => None ,
95
+ Self :: TypeError ( err) => Some ( err) ,
96
+ }
97
+ }
98
+ }
99
+
91
100
impl From < TypeError > for RetrievalError {
92
101
fn from ( err : TypeError ) -> Self {
93
102
Self :: TypeError ( err)
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ impl fmt::Display for ParseError {
75
75
}
76
76
}
77
77
78
+ impl std:: error:: Error for ParseError { }
79
+
78
80
/// Error conditions that might occur during initial parsing of the
79
81
/// bibliography.
80
82
///
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ impl fmt::Display for TypeError {
43
43
}
44
44
}
45
45
46
+ impl std:: error:: Error for TypeError { }
47
+
46
48
/// Error conditions that might occur while parsing the chunks in a field into a specific
47
49
/// [`Type`].
48
50
///
You can’t perform that action at this time.
0 commit comments