diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-17 18:07:32 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-08-19 13:41:55 +0200 |
commit | 11316f041985345dd3a712d14bea749790f937a4 (patch) | |
tree | e7f4425e047d7a8245e98f5c3a4b2afc8a5a6ba7 /integration_tests/tests/test_html5lib.rs | |
parent | 378662fa52bbc3e9e4a210f649093dcdadf51afa (diff) |
break!: stop abusing Display for Error codes
Display impls should return human-readable strings. After
this commit we're able to introduce a proper Display impl
in the future without that being a breaking change.
Diffstat (limited to 'integration_tests/tests/test_html5lib.rs')
-rw-r--r-- | integration_tests/tests/test_html5lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integration_tests/tests/test_html5lib.rs b/integration_tests/tests/test_html5lib.rs index 52df539..da3e983 100644 --- a/integration_tests/tests/test_html5lib.rs +++ b/integration_tests/tests/test_html5lib.rs @@ -122,7 +122,7 @@ fn run_test_inner<R: Reader>( match token { Token::Error { error, .. } => actual.errors.push(TestError { - code: error.to_string(), + code: error.code().to_string(), }), Token::StartTag(tag) => actual.tokens.push(TestToken::StartTag { name: tag.name, |