File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ struct MyError;
16
16
impl FailureExample for FailureExampleImpl {
17
17
async fn do_run ( & self , context : Context < ' _ > ) -> Result < ( ) , TerminalError > {
18
18
context
19
- . run ( || async move {
19
+ . run :: < _ , _ , ( ) > ( || async move {
20
20
if rand:: thread_rng ( ) . next_u32 ( ) % 4 == 0 {
21
21
Err ( TerminalError :: new ( "Failed!!!" ) ) ?
22
22
}
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ impl Failing for FailingImpl {
72
72
error_message : String ,
73
73
) -> HandlerResult < ( ) > {
74
74
context
75
- . run ( || async move { Err ( TerminalError :: new ( error_message) ) ? } )
75
+ . run :: < _ , _ , ( ) > ( || async move { Err ( TerminalError :: new ( error_message) ) ? } )
76
76
. await ?;
77
77
78
78
unreachable ! ( "This should be unreachable" )
You can’t perform that action at this time.
0 commit comments