Skip to content

Commit

Permalink
clean up output format
Browse files Browse the repository at this point in the history
  • Loading branch information
MakitaToki authored and nyurik committed Apr 30, 2023
1 parent cdfe6b5 commit 8348b5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions library/core/src/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,15 @@ fn assert_failed_inner(
match args {
Some(args) => panic!(
r#"assertion failed: `({left_name} {} {right_name})`
{left_name}: `{:?}`,
{right_name}: `{:?}`: {}"#,
left: `{:?}`,
right: `{:?}`:
at: {}"#,
op, left_val, right_val, args
),
None => panic!(
r#"assertion failed: `({left_name} {} {right_name})`
{left_name}: `{:?}`,
{right_name}: `{:?}`"#,
left: `{:?}`,
right: `{:?}`"#,
op, left_val, right_val,
),
}
Expand Down

0 comments on commit 8348b5a

Please sign in to comment.