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:
@ -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(())
|
||||
|
Reference in New Issue
Block a user