Skip to content

Commit

Permalink
feat: support non-strict HTML parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeijboom committed Jun 9, 2023
1 parent c2cd6f3 commit b22f3ad
Show file tree
Hide file tree
Showing 3 changed files with 326 additions and 231 deletions.
6 changes: 3 additions & 3 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ impl std::error::Error for Error {}
impl Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Error::IOError(e) => e.fmt(f),
Error::ParseError(e) => e.fmt(f),
Error::Utf8Error(e) => e.fmt(f),
Error::IOError(e) => write!(f, "IOError: {e}"),
Error::ParseError(e) => write!(f, "ParseError: {e}"),
Error::Utf8Error(e) => write!(f, "Utf8Error: {e}"),
Error::Other(e) => e.fmt(f),
}
}
Expand Down

0 comments on commit b22f3ad

Please sign in to comment.