summaryrefslogtreecommitdiff
path: root/src/watch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/watch.rs')
-rw-r--r--src/watch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watch.rs b/src/watch.rs
index 453d9a4..944d77b 100644
--- a/src/watch.rs
+++ b/src/watch.rs
@@ -92,8 +92,8 @@ pub fn watch(
break;
}
WatchEvent::Input(InputEvent::Run) => watch_state.run_current_exercise()?,
- WatchEvent::Input(InputEvent::Unrecognized(cmd)) => {
- watch_state.handle_invalid_cmd(&cmd)?;
+ WatchEvent::Input(InputEvent::Unrecognized(input)) => {
+ watch_state.handle_invalid_input(input)?;
}
WatchEvent::FileChange { exercise_ind } => {
watch_state.run_exercise_with_ind(exercise_ind)?;