Skip to content

Commit

Permalink
Merge pull request #295 from epage/error
Browse files Browse the repository at this point in the history
feat(error): Add ParseError::into_error
  • Loading branch information
epage authored Jul 24, 2023
2 parents 965f69b + 3d09e92 commit c3145c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,12 @@ impl<I, E> ParseError<I, E> {
pub fn inner(&self) -> &E {
&self.inner
}

/// The original [`ParserError`]
#[inline]
pub fn into_inner(self) -> E {
self.inner
}
}

impl<I, E> core::fmt::Display for ParseError<I, E>
Expand Down

0 comments on commit c3145c4

Please # to comment.