diff --git a/src/section_runner.rs b/src/section_runner.rs index 53647b7..106b339 100644 --- a/src/section_runner.rs +++ b/src/section_runner.rs @@ -196,11 +196,7 @@ impl RunnerTask { fn process_queue(&mut self, run_queue: &mut VecDeque) { use RunState::*; - loop { - let current_run = match run_queue.front_mut() { - Some(current_run) => current_run, - None => break, - }; + while let Some(current_run) = run_queue.front_mut() { let run_finished = match (¤t_run.state, self.paused) { (Waiting, false) => { self.start_run(current_run);