Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
scouten committed Dec 28, 2023
1 parent 8d06483 commit b9ad1dc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use nom::{
error::{ErrorKind, FromExternalError, ParseError},
error::{ErrorKind, ParseError},
IResult,
};
use nom_span::Spanned;
Expand Down Expand Up @@ -51,12 +51,6 @@ impl From<nom::Err<nom::error::Error<Spanned<&str>>>> for Error {
}
}

impl<I, E> FromExternalError<I, E> for Error {
fn from_external_error(_input: I, kind: ErrorKind, _e: E) -> Error {
Error::NomError(kind)
}
}

/// Holds the result of AsciiDoc parsing functions.
///
/// Note that this type is also a [`Result`], so the usual functions (`map`,
Expand Down

0 comments on commit b9ad1dc

Please sign in to comment.