aboutsummaryrefslogtreecommitdiff
path: root/tests/test_spans.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-11 21:42:18 +0200
committerMartin Fischer <martin@push-f.com>2023-08-19 06:41:55 +0200
commit36fbad12e7a50fcae3cc5e9e2d2baccd828115a5 (patch)
treec200a7dc3feb3bf869c99beab01f5dbf9d12ce4c /tests/test_spans.rs
parentc00d5cdec03364f064a1273a5d806f3600abf09a (diff)
break!: rename Readable to IntoReader
The trait of the standard library is also called IntoIterator and not Iterable.
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(),