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;
1616impl FailureExample for FailureExampleImpl {
1717 async fn do_run ( & self , context : Context < ' _ > ) -> Result < ( ) , TerminalError > {
1818 context
19- . run ( || async move {
19+ . run :: < _ , _ , ( ) > ( || async move {
2020 if rand:: thread_rng ( ) . next_u32 ( ) % 4 == 0 {
2121 Err ( TerminalError :: new ( "Failed!!!" ) ) ?
2222 }
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ impl Failing for FailingImpl {
7272 error_message : String ,
7373 ) -> HandlerResult < ( ) > {
7474 context
75- . run ( || async move { Err ( TerminalError :: new ( error_message) ) ? } )
75+ . run :: < _ , _ , ( ) > ( || async move { Err ( TerminalError :: new ( error_message) ) ? } )
7676 . await ?;
7777
7878 unreachable ! ( "This should be unreachable" )
You can’t perform that action at this time.
0 commit comments