mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
Remove unneeded .iter()
This commit is contained in:
parent
14f3585816
commit
2f30eac27f
1 changed files with 2 additions and 6 deletions
|
@ -339,12 +339,8 @@ fn watch(
|
||||||
|
|
||||||
clear_screen();
|
clear_screen();
|
||||||
|
|
||||||
let failed_exercise_hint = match verify(
|
let failed_exercise_hint = match verify(exercises, (0, exercises.len()), verbose, success_hints)
|
||||||
exercises.iter(),
|
{
|
||||||
(0, exercises.len()),
|
|
||||||
verbose,
|
|
||||||
success_hints,
|
|
||||||
) {
|
|
||||||
Ok(_) => return Ok(WatchStatus::Finished),
|
Ok(_) => return Ok(WatchStatus::Finished),
|
||||||
Err(exercise) => Arc::new(Mutex::new(Some(exercise.hint.clone()))),
|
Err(exercise) => Arc::new(Mutex::new(Some(exercise.hint.clone()))),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue