@@ -83,13 +83,11 @@ fn run_watch(
83
83
match event {
84
84
WatchEvent :: Input ( InputEvent :: Next ) => match watch_state. next_exercise ( & mut stdout) ? {
85
85
ExercisesProgress :: AllDone => break ,
86
- ExercisesProgress :: CurrentPending => watch_state. render ( & mut stdout) ?,
87
86
ExercisesProgress :: NewPending => watch_state. run_current_exercise ( & mut stdout) ?,
87
+ ExercisesProgress :: CurrentPending => ( ) ,
88
88
} ,
89
89
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 ) ,
93
91
WatchEvent :: Input ( InputEvent :: Quit ) => {
94
92
stdout. write_all ( QUIT_MSG ) ?;
95
93
break ;
@@ -99,9 +97,7 @@ fn run_watch(
99
97
watch_state. handle_file_change ( exercise_ind, & mut stdout) ?;
100
98
}
101
99
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 ) ) ,
105
101
WatchEvent :: TerminalEventErr ( e) => {
106
102
return Err ( Error :: from ( e) . context ( "Terminal event listener failed" ) ) ;
107
103
}
0 commit comments