Fix ui test for updated core::panic behaviour.

It now throws a &str instead of a String.
This commit is contained in:
Mara Bos 2020-10-19 22:36:45 +02:00
parent 2780e35246
commit 9890217c0e

View file

@ -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)
);
}