From 1186517ec96820ccde4e1f83cf0edb3c4f24952a Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Wed, 30 Oct 2024 15:54:50 +0100 Subject: [PATCH] Remove InfallibleTokenizer (#102) * Remove InfallibleTokenizer InfallibleTokenizer and Tokenizer::infallible were added as shortcuts for when the underlying input cannot fail, to make iteration slightly more ergonomic. In recent Rust versions it's possible to run `for Ok(token) in ...`, which makes this useless. * remove impl * fix * fix doc * fix benchmarks * link pr --- CHANGELOG.md | 14 ++++++++++++++ Cargo.toml | 3 ++- README.md | 2 +- benches/patterns.rs | 2 +- src/emitters/callback.rs | 5 ++--- src/lib.rs | 2 +- src/reader.rs | 2 +- src/tokenizer.rs | 27 --------------------------- 8 files changed, 22 insertions(+), 35 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..525e2e5 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,14 @@ +# 0.7.0 + +- Removal of `Tokenizer.infallible()`. Use `for Ok(token) in Tokenizer::new()` instead. [PR 102](https://github.com/untitaker/html5gum/pull/102) +- Add more convenience functions to `tree-builder` feature, equivalent to `html5ever::driver`. [PR 101](https://github.com/untitaker/html5gum/pull/101) + +# 0.6.1 + +- Fix a bug where html5gum would interpret tags inside of `