Fix nightly coerce-container-to-any.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -100,7 +100,8 @@ pub fn trap() {
|
|||||||
|
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn panic_str(p: &Box<dyn Any + Send>) -> &'static str {
|
pub fn panic_str(p: &Box<dyn Any + Send>) -> &'static str {
|
||||||
p.downcast_ref::<&str>()
|
(**p)
|
||||||
|
.downcast_ref::<&str>()
|
||||||
.copied()
|
.copied()
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user