Fix nightly coerce-container-to-any.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
51778b9354
commit
13e0113587
1 changed files with 2 additions and 1 deletions
|
|
@ -100,7 +100,8 @@ pub fn trap() {
|
|||
|
||||
#[must_use]
|
||||
pub fn panic_str(p: &Box<dyn Any + Send>) -> &'static str {
|
||||
p.downcast_ref::<&str>()
|
||||
(**p)
|
||||
.downcast_ref::<&str>()
|
||||
.copied()
|
||||
.unwrap_or_default()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue