diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-14 08:36:57 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-12-05 01:53:28 +0100 |
commit | b74f8b6b0d0f080cff5f5ff78d88dc4d7d2165a1 (patch) | |
tree | 1060754a18ddb081f22250d96f472fef03478663 /src/NormalizeCaseInsensitiveString.hpp | |
parent | a4b81f82d6cd427f83c52777b5f5a437d91cce8d (diff) |
Make Debug impl of Uri developer friendly
Previously an assertion like:
assert_eq!(Uri::parse("some/path"), Uri::parse("other/path"));
resulted in a panic like:
thread 'uri::tests::example' panicked at 'assertion failed: `(left == right)`
left: `Ok(Uri { scheme: None, authority: None, path: [[115, 111, 109, 101], [112, 97, 116, 104]], query: None, fragment: None })`,
right: `Ok(Uri { scheme: None, authority: None, path: [[111, 116, 104, 101, 114], [112, 97, 116, 104]], query: None, fragment: None })`'
This commit changes the Debug impl to be more developer friendly:
thread 'uri::tests::example' panicked at 'assertion failed: `(left == right)`
left: `Ok(Uri("some/path"))`,
right: `Ok(Uri("other/path"))`'
Fixes #3.
Diffstat (limited to 'src/NormalizeCaseInsensitiveString.hpp')
0 files changed, 0 insertions, 0 deletions