From 4b26546589f7d2b50455429482cf1f386ceae8b3 Mon Sep 17 00:00:00 2001 From: Roberto Vidal Date: Tue, 12 Nov 2019 11:35:40 +0100 Subject: fix(run): makes `run` never prompt `watch` and `verify` do prompt the user to actively move to the next exercise. This change fixes `run` to never prompt. Previously it was inconsistent between "test" and "compile" exercises. BREAKING CHANGE: we again change the behavior of the `run` command --- src/run.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/run.rs') diff --git a/src/run.rs b/src/run.rs index 1f777ec..1484351 100644 --- a/src/run.rs +++ b/src/run.rs @@ -5,9 +5,7 @@ use indicatif::ProgressBar; pub fn run(exercise: &Exercise) -> Result<(), ()> { match exercise.mode { - Mode::Test => { - test(exercise)?; - } + Mode::Test => test(exercise)?, Mode::Compile => compile_and_run(exercise)?, } Ok(()) -- cgit v1.2.3