diff options
Diffstat (limited to 'tests/test_spans.rs')
-rw-r--r-- | tests/test_spans.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs index f8e54a2..b41b1b9 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -6,14 +6,14 @@ use codespan_reporting::{ files::SimpleFiles, term::{self, termcolor::Buffer}, }; -use html5tokenizer::{spans::PosTrackingReader, DefaultEmitter, Token, Tokenizer}; +use html5tokenizer::{offset::PosTrackingReader, DefaultEmitter, Token, Tokenizer}; use insta::assert_snapshot; use pretty_assertions::assert_eq; -fn tokenizer(html: &'static str) -> impl Iterator<Item = Token<Range<usize>>> { +fn tokenizer(html: &'static str) -> impl Iterator<Item = Token<usize>> { Tokenizer::new( PosTrackingReader::new(html), - DefaultEmitter::<_, Range<usize>>::default(), + DefaultEmitter::<_, usize>::default(), ) .flatten() } |