Netdoc: add accessor to error for ParseErrorKind
The kind type was already public, but we didn't give the user any way to get it.
This commit is contained in:
parent
171aa5ea00
commit
102600e1c7
|
@ -417,6 +417,11 @@ impl Error {
|
|||
self.source = Some(source.into());
|
||||
self
|
||||
}
|
||||
|
||||
/// Return the [`ParseErrorKind`] of this error.
|
||||
pub fn parse_error_kind(&self) -> ParseErrorKind {
|
||||
self.kind
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for Error {
|
||||
|
|
Loading…
Reference in New Issue