Skip to content

Commit 4285909

Browse files
committed
add track_caller annotations
1 parent 6c6f206 commit 4285909

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/formality-core/src/test_util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ where
6060
T: Debug,
6161
E: Debug,
6262
{
63+
#[track_caller]
6364
fn assert_ok(self, expect: expect_test::Expect) {
6465
match self {
6566
Ok(v) => {
@@ -71,6 +72,7 @@ where
7172
}
7273
}
7374

75+
#[track_caller]
7476
fn assert_err(self, expect: expect_test::Expect) {
7577
match self {
7678
Ok(v) => panic!("expected `Err`, got `Ok`: {v:?}"),

0 commit comments

Comments
 (0)