diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-12 08:19:00 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-28 10:36:08 +0200 |
commit | ad6ac5f0a825775c231e76cdc9016e61e54f4141 (patch) | |
tree | 7e18bad94e0b1fbccef9c968f0c94cb49fa6e048 /examples/tokenize.rs | |
parent | ab373b495c8ed659e64158b764206dd2eaa35336 (diff) |
break!: rename DefaultEmitter to TracingEmitter
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 f8859e4..791db0f 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::{DefaultEmitter, Tokenizer}; +use html5tokenizer::{Tokenizer, TracingEmitter}; use std::io::BufReader; fn main() { let mut tokenizer = Tokenizer::new( BufReader::new(std::io::stdin().lock()), - DefaultEmitter::default(), + TracingEmitter::default(), ); while let Some(token) = tokenizer.next() { for (error, _) in tokenizer.emitter_mut().drain_errors() { |