aboutsummaryrefslogtreecommitdiff
path: root/tests/test_spans.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_spans.rs')
-rw-r--r--tests/test_spans.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs
index 93330db..61b70ce 100644
--- a/tests/test_spans.rs
+++ b/tests/test_spans.rs
@@ -6,7 +6,9 @@ use codespan_reporting::{
files::SimpleFiles,
term::{self, termcolor::Buffer},
};
-use html5tokenizer::{spans::PosTracker, DefaultEmitter, Readable, StringReader, Token, Tokenizer};
+use html5tokenizer::{
+ spans::PosTracker, DefaultEmitter, IntoReader, StringReader, Token, Tokenizer,
+};
#[test]
fn test() {
@@ -18,7 +20,7 @@ fn test() {
for token in Tokenizer::new_with_emitter(
PosTracker {
- reader: html.to_reader(),
+ reader: html.into_reader(),
position: 0,
},
DefaultEmitter::<PosTracker<StringReader>, Range<usize>>::default(),