We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa0a23a commit 047e156Copy full SHA for 047e156
crates/formality-core/src/test_util.rs
@@ -58,15 +58,15 @@ pub trait ResultTestExt<T, E> {
58
impl<T, E> ResultTestExt<T, E> for Result<T, E>
59
where
60
T: Debug,
61
- E: Display,
+ E: Debug,
62
{
63
fn assert_ok(self, expect: expect_test::Expect) {
64
match self {
65
Ok(v) => {
66
expect.assert_eq(&format!("{v:?}"));
67
}
68
Err(e) => {
69
- panic!("expected `Ok`, got `Err`: {e}");
+ panic!("expected `Ok`, got `Err`: {e:?}");
70
71
72
@@ -75,7 +75,7 @@ where
75
76
Ok(v) => panic!("expected `Err`, got `Ok`: {v:?}"),
77
78
- expect.assert_eq(&format!("{e}"));
+ expect.assert_eq(&format!("{e:?}"));
79
80
81
0 commit comments