From 8eb2a95a483bddc8c6a6a8a30dff68c290277075 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 19 Aug 2023 11:46:27 +0200 Subject: break!: remove type param defaults from Tokenizer --- src/tokenizer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 Stack2 { } /// An HTML tokenizer. See crate-level docs for basic usage. -pub struct Tokenizer = DefaultEmitter> { +pub struct Tokenizer> { eof: bool, pub(crate) state: InternalState, pub(crate) emitter: E, -- cgit v1.2.3