Skip to content

Commit

Permalink
Add track_caller for asser_equal
Browse files Browse the repository at this point in the history
  • Loading branch information
l4l authored and jswrenn committed Oct 22, 2024
1 parent 5d4056b commit b793238
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4571,6 +4571,7 @@ where
/// assert_equal("exceed".split('c'), "excess".split('c'));
/// // ^PANIC: panicked at 'Failed assertion Some("eed") == Some("ess") for iteration 1'.
/// ```
#[track_caller]
pub fn assert_equal<I, J>(a: I, b: J)
where
I: IntoIterator,
Expand Down

0 comments on commit b793238

Please sign in to comment.