Fix ui test for updated core::panic behaviour.
It now throws a &str instead of a String.
This commit is contained in:
parent
2780e35246
commit
9890217c0e
1 changed files with 2 additions and 2 deletions
|
|
@ -53,8 +53,8 @@ enum LR_NonZero {
|
|||
fn test_panic_msg<T>(op: impl (FnOnce() -> T) + panic::UnwindSafe, msg: &str) {
|
||||
let err = panic::catch_unwind(op).err();
|
||||
assert_eq!(
|
||||
err.as_ref().and_then(|a| a.downcast_ref::<String>()).map(|s| &**s),
|
||||
Some(msg)
|
||||
err.as_ref().and_then(|a| a.downcast_ref::<&str>()),
|
||||
Some(&msg)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue