mirror of
https://github.com/dtolnay/thiserror.git
synced 2025-04-04 21:37:57 +03:00
Track caller of the assertion helper in test_expr
This commit is contained in:
parent
a1882b2a75
commit
751dc63a8e
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ pub enum RustupError {
|
|||
},
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
fn assert<T: Display>(expected: &str, value: T) {
|
||||
assert_eq!(expected, value.to_string());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue