@@ -83,13 +83,11 @@ fn run_watch(
8383 match event {
8484 WatchEvent :: Input ( InputEvent :: Next ) => match watch_state. next_exercise ( & mut stdout) ? {
8585 ExercisesProgress :: AllDone => break ,
86- ExercisesProgress :: CurrentPending => watch_state. render ( & mut stdout) ?,
8786 ExercisesProgress :: NewPending => watch_state. run_current_exercise ( & mut stdout) ?,
87+ ExercisesProgress :: CurrentPending => ( ) ,
8888 } ,
8989 WatchEvent :: Input ( InputEvent :: Hint ) => watch_state. show_hint ( & mut stdout) ?,
90- WatchEvent :: Input ( InputEvent :: List ) => {
91- return Ok ( WatchExit :: List ) ;
92- }
90+ WatchEvent :: Input ( InputEvent :: List ) => return Ok ( WatchExit :: List ) ,
9391 WatchEvent :: Input ( InputEvent :: Quit ) => {
9492 stdout. write_all ( QUIT_MSG ) ?;
9593 break ;
@@ -99,9 +97,7 @@ fn run_watch(
9997 watch_state. handle_file_change ( exercise_ind, & mut stdout) ?;
10098 }
10199 WatchEvent :: TerminalResize => watch_state. render ( & mut stdout) ?,
102- WatchEvent :: NotifyErr ( e) => {
103- return Err ( Error :: from ( e) . context ( NOTIFY_ERR ) ) ;
104- }
100+ WatchEvent :: NotifyErr ( e) => return Err ( Error :: from ( e) . context ( NOTIFY_ERR ) ) ,
105101 WatchEvent :: TerminalEventErr ( e) => {
106102 return Err ( Error :: from ( e) . context ( "Terminal event listener failed" ) ) ;
107103 }
0 commit comments