1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-07-13 01:20:42 +02:00

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
This commit is contained in:
Roberto Vidal
2019-11-12 11:35:40 +01:00
parent bc56788fe6
commit 4b26546589
8 changed files with 96 additions and 20 deletions

View File

@ -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(())