summaryrefslogtreecommitdiff
path: root/src/run.rs
diff options
context:
space:
mode:
authorRoberto Vidal <vidal.roberto.j@gmail.com>2019-11-12 11:35:40 +0100
committerRoberto Vidal <vidal.roberto.j@gmail.com>2019-11-12 11:35:40 +0100
commit4b26546589f7d2b50455429482cf1f386ceae8b3 (patch)
tree66ff06c0bf1fb6dce88485212148a2c5b2e167d8 /src/run.rs
parentbc56788fe637f6ff16c1e445a230b01544d2d9cf (diff)
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
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs4
1 files changed, 1 insertions, 3 deletions
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(())