Skip to content

Commit 43f96a1

Browse files
committed
Fix snprintf test case panic line numbers
1 parent 284a9d3 commit 43f96a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/snprintf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ mod test {
2727
}
2828

2929
/// Handle the buffer that `snprintf` needs
30+
#[track_caller]
3031
fn asprintf<F>(fmt: &str, expected: &str, f: F)
3132
where
3233
F: FnOnce(*mut CChar, usize, *const CChar) -> i32,

0 commit comments

Comments
 (0)