diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-12 09:03:56 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-28 10:36:08 +0200 |
commit | 14bc6f2cceed0fa578d6a1195266885bf57a5d4c (patch) | |
tree | 50988abce274aa5e4aa5905fb4bcc5c8cc4de652 /examples/tokenize.rs | |
parent | ad6ac5f0a825775c231e76cdc9016e61e54f4141 (diff) |
chore: add BasicEmitter stub
Diffstat (limited to 'examples/tokenize.rs')
-rw-r--r-- | examples/tokenize.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tokenize.rs b/examples/tokenize.rs index 791db0f..a7c2214 100644 --- a/examples/tokenize.rs +++ b/examples/tokenize.rs @@ -1,13 +1,13 @@ //! Let's you easily try out the tokenizer with e.g. //! printf '<h1>Hello world!</h1>' | cargo run --example=tokenize -use html5tokenizer::{Tokenizer, TracingEmitter}; +use html5tokenizer::{BasicEmitter, Tokenizer}; use std::io::BufReader; fn main() { let mut tokenizer = Tokenizer::new( BufReader::new(std::io::stdin().lock()), - TracingEmitter::default(), + BasicEmitter::default(), ); while let Some(token) = tokenizer.next() { for (error, _) in tokenizer.emitter_mut().drain_errors() { |