diff options
| author | mo8it <mo8it@proton.me> | 2024-06-01 21:48:15 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-06-01 21:48:15 +0200 |
| commit | 611f9d8722593430d82187aebee9db5cc6952da1 (patch) | |
| tree | 1b2a0ef0728c27c1cfbd63135ed219775f6c1e64 /src/watch | |
| parent | 8e9c99ae5bfd9212c7d2a2c78186ab82133e69c7 (diff) | |
Check that all solutions run successfully
Diffstat (limited to 'src/watch')
| -rw-r--r-- | src/watch/state.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watch/state.rs b/src/watch/state.rs index 14c3f01..dd43c56 100644 --- a/src/watch/state.rs +++ b/src/watch/state.rs @@ -8,7 +8,7 @@ use std::io::{self, StdoutLock, Write}; use crate::{ app_state::{AppState, ExercisesProgress}, clear_terminal, - exercise::OUTPUT_CAPACITY, + exercise::{RunnableExercise, OUTPUT_CAPACITY}, progress_bar::progress_bar, terminal_link::TerminalFileLink, }; @@ -54,7 +54,7 @@ impl<'a> WatchState<'a> { let success = self .app_state .current_exercise() - .run(&mut self.output, self.app_state.target_dir())?; + .run_exercise(&mut self.output, self.app_state.target_dir())?; if success { self.done_status = if let Some(solution_path) = self.app_state.current_solution_path()? { |
