aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-30 17:09:08 +0100
committerMartin Fischer <martin@push-f.com>2021-12-05 02:52:36 +0100
commit1f99ea9e16f85945e2606905ed6345519ce16e4e (patch)
treee2c689ac735f08c8d683d84be0292f1e20d7051a /src/tokenizer.rs
parent91c0008023746a9ffdd01b9b87f89a2ef4ebb01e (diff)
spans: make Emitter generic over Span
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 b5a2edf..377dd01 100644
--- a/src/tokenizer.rs
+++ b/src/tokenizer.rs
@@ -33,7 +33,7 @@ impl<T: Copy> Stack2<T> {
}
/// A HTML tokenizer. See crate-level docs for basic usage.
-pub struct Tokenizer<R: Reader, E: Emitter = DefaultEmitter> {
+pub struct Tokenizer<R: Reader, E: Emitter = DefaultEmitter<()>> {
eof: bool,
pub(crate) state: InternalState,
pub(crate) emitter: E,