aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-28 18:35:59 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commitec8f612754a516797589d23cf08b60ae406a2e96 (patch)
tree067c064feecdb2559d5c9a7bf2ea2b4ee282d8f0 /src/tokenizer.rs
parent632a14059b24a9435efe4df6c186a36947938475 (diff)
fix!: add missing `R: Position<O>` bounds
It doesn't make sense that you're able to construct a Tokenizer/NaiveParser that you're unable to iterate over.
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r--src/tokenizer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs
index 7cc4712..05c1165 100644
--- a/src/tokenizer.rs
+++ b/src/tokenizer.rs
@@ -57,7 +57,7 @@ pub struct Tokenizer<R: Reader, O, E: Emitter<O>> {
pub(crate) naively_switch_state: bool,
}
-impl<R: Reader, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> {
+impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> {
/// Creates a new tokenizer from some input and an emitter.
///
/// Note that properly parsing HTML with this tokenizer requires you to