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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs
index 70bcf6e..10735b2 100644
--- a/tests/test_spans.rs
+++ b/tests/test_spans.rs
@@ -202,7 +202,7 @@ fn annotate_errors(html: &'static str) -> String {
let mut labels = Vec::new();
for token in tokenizer(html) {
if let Token::Error { error, span } = token {
- labels.push((span, error.to_string()));
+ labels.push((span, error.code()));
}
}
annotate(html, labels)