From 1edeab2b7b7d039fd9dd83bc14255bddff47618c Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 16 Aug 2023 18:39:05 +0200 Subject: fix: report value offset/span as None for the empty attr syntax --- tests/test_spans.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_spans.rs b/tests/test_spans.rs index 99ff9ee..6bd9378 100644 --- a/tests/test_spans.rs +++ b/tests/test_spans.rs @@ -127,7 +127,7 @@ fn attribute_value_span() { panic!("expected start tag") }; for attr in &tag.attributes { - labels.push((attr.value_span(), "")); + labels.push((attr.value_span().unwrap(), "")); } assert_snapshot!(annotate(html, labels), @r###" -- cgit v1.2.3