diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-19 11:46:27 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-08-19 13:41:55 +0200 |
commit | 8eb2a95a483bddc8c6a6a8a30dff68c290277075 (patch) | |
tree | 9d7a587ccccb6289fa9bced703d39729bd8d7d53 /src | |
parent | 82898967320f90116bbc686ab7ffc2f61ff456c4 (diff) |
break!: remove type param defaults from Tokenizer
Diffstat (limited to 'src')
-rw-r--r-- | src/tokenizer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs index d8f1b95..3a75e60 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -1,10 +1,10 @@ use crate::machine; -use crate::offset::{NoopOffset, Offset, Position}; +use crate::offset::{Offset, Position}; use crate::reader::{IntoReader, Reader}; use crate::utils::{ control_pat, noncharacter_pat, surrogate_pat, ControlToken, State as InternalState, }; -use crate::{DefaultEmitter, Emitter, Error}; +use crate::{Emitter, Error}; // this is a stack that can hold 0 to 2 Ts #[derive(Debug, Default, Clone, Copy)] @@ -33,7 +33,7 @@ impl<T: Copy> Stack2<T> { } /// An HTML tokenizer. See crate-level docs for basic usage. -pub struct Tokenizer<R: Reader, O = NoopOffset, E: Emitter<O> = DefaultEmitter<O>> { +pub struct Tokenizer<R: Reader, O, E: Emitter<O>> { eof: bool, pub(crate) state: InternalState, pub(crate) emitter: E, |