aboutsummaryrefslogtreecommitdiff
path: root/tests/test_html5lib.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-30 19:11:19 +0100
committerMartin Fischer <martin@push-f.com>2021-12-05 02:52:36 +0100
commitf9639d724e1a6f1e8edaeafa78c2c3d8b43640a3 (patch)
tree643dfe2a34082edb6b7ca3bd293f59f343766e10 /tests/test_html5lib.rs
parent042409a2c40bb997739326928eab7d0430cec50b (diff)
spans: add spans to Token::Error
Diffstat (limited to 'tests/test_html5lib.rs')
-rw-r--r--tests/test_html5lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_html5lib.rs b/tests/test_html5lib.rs
index 662f3c5..cd3785f 100644
--- a/tests/test_html5lib.rs
+++ b/tests/test_html5lib.rs
@@ -296,9 +296,9 @@ fn run_test_inner<R: Reader>(
for token in tokenizer {
let token = token.unwrap();
- if let Token::Error(e) = token {
+ if let Token::Error { error, .. } = token {
actual_errors.push(ParseError {
- code: ParseErrorInner(e),
+ code: ParseErrorInner(error),
});
} else {
actual_tokens.push(token);