diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-16 18:39:05 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-08-19 13:41:55 +0200 |
commit | 1edeab2b7b7d039fd9dd83bc14255bddff47618c (patch) | |
tree | 6af8bfbf56270ced9b3dcbf1fdd58d20521c276f /tests/test_spans.rs | |
parent | ae5d8185a5b419f89d520504c1cb4c59c26879bf (diff) |
fix: report value offset/span as None for the empty attr syntax
Diffstat (limited to 'tests/test_spans.rs')
-rw-r--r-- | tests/test_spans.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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###" <test x=unquoted y = unquoted z='single-quoted' zz="double-quoted" empty=''> |