diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-17 08:57:15 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-08-19 11:40:58 +0200 |
commit | c899f2f36df0371af776f21231ccdf0d30a2aaab (patch) | |
tree | bead2ebaa66c9b114aa24dbf8b403b029842999b /README.md | |
parent | 235d810c1b128a4f862289cb70fc31651a6f2068 (diff) |
refactor: add default for S type param of DefaultEmitter
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ use std::fmt::Write; use html5tokenizer::{DefaultEmitter, Tokenizer, Token}; let html = "<title >hello world</title>"; -let emitter = DefaultEmitter::<_, ()>::default(); +let emitter = DefaultEmitter::<_>::default(); let mut new_html = String::new(); for token in Tokenizer::new(html, emitter).flatten() { |