mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 20:26:52 +00:00
Fix nightly coerce-container-to-any.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
51778b9354
commit
13e0113587
1 file changed
+2
-1
+2
-1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user