summaryrefslogtreecommitdiff
path: root/src/watch/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch/state.rs')
-rw-r--r--src/watch/state.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/watch/state.rs b/src/watch/state.rs
index 40c01bf..82b745a 100644
--- a/src/watch/state.rs
+++ b/src/watch/state.rs
@@ -50,7 +50,10 @@ impl<'a> WatchState<'a> {
pub fn run_current_exercise(&mut self) -> Result<()> {
self.show_hint = false;
- let success = self.app_state.current_exercise().run(&mut self.output)?;
+ let success = self
+ .app_state
+ .current_exercise()
+ .run(&mut self.output, self.app_state.target_dir())?;
if success {
self.done_status =
if let Some(solution_path) = self.app_state.current_solution_path()? {