We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
&(dyn Any + Send)
&dyn Any
1 parent f1f2d65 commit acbf0d8Copy full SHA for acbf0d8
src/panic.rs
@@ -16,7 +16,7 @@ use std::panic;
16
17
use serde_::{Deserialize, Serialize};
18
19
-fn serialize_panic(panic: &(dyn Any + Send + 'static)) -> PanicInfo {
+fn serialize_panic(panic: &dyn Any) -> PanicInfo {
20
PanicInfo::new(match panic.downcast_ref::<&'static str>() {
21
Some(s) => *s,
22
None => match panic.downcast_ref::<String>() {
@@ -169,7 +169,7 @@ fn reset_panic_info() {
169
});
170
}
171
172
-fn take_panic_info(payload: &(dyn Any + Send + 'static)) -> PanicInfo {
+fn take_panic_info(payload: &dyn Any) -> PanicInfo {
173
PANIC_INFO
174
.with(|pi| pi.borrow_mut().take())
175
.unwrap_or_else(move || serialize_panic(payload))
0 commit comments