File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ use crate::panic::Location;
24
24
#[ stable( feature = "panic_hooks" , since = "1.10.0" ) ]
25
25
#[ derive( Debug ) ]
26
26
pub struct PanicInfo < ' a > {
27
- payload : & ' a ( dyn Any + Send ) ,
27
+ payload : & ' a dyn Any ,
28
28
message : Option < & ' a fmt:: Arguments < ' a > > ,
29
29
location : & ' a Location < ' a > ,
30
30
can_unwind : bool ,
@@ -81,7 +81,7 @@ impl<'a> PanicInfo<'a> {
81
81
/// ```
82
82
#[ must_use]
83
83
#[ stable( feature = "panic_hooks" , since = "1.10.0" ) ]
84
- pub fn payload ( & self ) -> & ( dyn Any + Send ) {
84
+ pub fn payload ( & self ) -> & dyn Any {
85
85
self . payload
86
86
}
87
87
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pub enum TestResult {
27
27
/// and associated data.
28
28
pub fn calc_result < ' a > (
29
29
desc : & TestDesc ,
30
- task_result : Result < ( ) , & ' a ( dyn Any + ' static + Send ) > ,
30
+ task_result : Result < ( ) , & ' a dyn Any > ,
31
31
time_opts : & Option < time:: TestTimeOptions > ,
32
32
exec_time : & Option < time:: TestExecTime > ,
33
33
) -> TestResult {
You can’t perform that action at this time.
0 commit comments