Fix nightly coerce-container-to-any.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk committed 2025-06-16 22:43:47 +00:00
1 parent 51778b9354
commit 13e0113587
1 file changed
+2 -1
+2 -1
View File
@@ -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()
}