We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d4aad3 commit 33191cbCopy full SHA for 33191cb
packages/std/src/errors/std_error.rs
@@ -735,8 +735,8 @@ mod tests {
735
fn implements_debug() {
736
let error: StdError = StdError::from(OverflowError::new(OverflowOperation::Sub));
737
let embedded = format!("Debug: {error:?}");
738
- let expected = r#"Debug: Overflow { source: OverflowError { operation: Sub }, backtrace: <disabled> }"#;
739
- assert_eq!(embedded, expected);
+ assert!(embedded
+ .starts_with("Debug: Overflow { source: OverflowError { operation: Sub }, backtrace:"));
740
}
741
742
#[test]
0 commit comments