Skip to content

Commit

Permalink
Fix failing test with RUST_BACKTRACE enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
chipshort committed Aug 7, 2024
1 parent 6d4aad3 commit 33191cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/std/src/errors/std_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,8 +735,8 @@ mod tests {
fn implements_debug() {
let error: StdError = StdError::from(OverflowError::new(OverflowOperation::Sub));
let embedded = format!("Debug: {error:?}");
let expected = r#"Debug: Overflow { source: OverflowError { operation: Sub }, backtrace: <disabled> }"#;
assert_eq!(embedded, expected);
assert!(embedded
.starts_with("Debug: Overflow { source: OverflowError { operation: Sub }, backtrace:"));
}

#[test]
Expand Down

0 comments on commit 33191cb

Please sign in to comment.