We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd1df87 commit abe5ffdCopy full SHA for abe5ffd
src/parser.rs
@@ -70,6 +70,24 @@ impl From<RecordParseError> for ParseError {
70
}
71
72
73
+impl Error for ParseError {
74
+ fn description(&self) -> &str {
75
+ match self {
76
+ &ParseError::IOError(ref err) => err.description(),
77
+ &ParseError::RecordParseError(ref err) => err.description(),
78
+ }
79
80
+}
81
+
82
+impl Display for ParseError {
83
+ fn fmt(&self, formatter: &mut Formatter) -> FormatResult {
84
85
+ &ParseError::IOError(ref err) => err.fmt(formatter),
86
+ &ParseError::RecordParseError(ref err) => err.fmt(formatter),
87
88
89
90
91
/// Parse the record one line at a time
92
///
93
/// # Examples
0 commit comments