Skip to content

Commit 7496412

Browse files
committed
Implement Error trait for custom error
1 parent e400c6b commit 7496412

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/converter.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ pub enum Error {
1717
MalformedDocument(String, roxmltree::TextPos),
1818
}
1919

20+
impl std::error::Error for Error {}
21+
2022
impl std::fmt::Display for Error {
2123
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
2224
match self {

0 commit comments

Comments
 (0)