summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_spans.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs
index 33f5d11..99ff9ee 100644
--- a/tests/test_spans.rs
+++ b/tests/test_spans.rs
@@ -110,8 +110,8 @@ fn attribute_name_span() {
let Token::StartTag(tag) = tokenizer(html).next().unwrap() else {
panic!("expected start tag")
};
- for (_name, attr) in tag.attributes {
- labels.push((attr.name_span, ""));
+ for attr in &tag.attributes {
+ labels.push((attr.name_span(), ""));
}
assert_snapshot!(annotate(html, labels), @r###"
<test x xyz y=VAL xy=VAL z = VAL yzx = VAL>
@@ -126,8 +126,8 @@ fn attribute_value_span() {
let Token::StartTag(tag) = tokenizer(html).next().unwrap() else {
panic!("expected start tag")
};
- for (_name, attr) in tag.attributes {
- labels.push((attr.value_span, ""));
+ for attr in &tag.attributes {
+ labels.push((attr.value_span(), ""));
}
assert_snapshot!(annotate(html, labels), @r###"
<test x=unquoted y = unquoted z='single-quoted' zz="double-quoted" empty=''>