diff options
| author | liv <mokou@fastmail.com> | 2023-05-23 11:05:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-23 11:05:43 +0200 |
| commit | 10d8357876fe1f6236b88ac652855acbfe126f5b (patch) | |
| tree | e998af74d97adad714859f0223b186626330e86f | |
| parent | e35a84fcb3f448aa3c455fab8c3a6a13fd47e606 (diff) | |
| parent | 9604ab66218a83710e0da1152ec75b5574f051a8 (diff) | |
Merge pull request #1526 from lazywalker/fix-iterators5
fix(exercises): use snake_case variables to avoid warning
| -rw-r--r-- | exercises/iterators/iterators5.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/exercises/iterators/iterators5.rs b/exercises/iterators/iterators5.rs index dcf0742..d0fcc8c 100644 --- a/exercises/iterators/iterators5.rs +++ b/exercises/iterators/iterators5.rs @@ -79,11 +79,11 @@ mod tests { #[test] fn count_complete_equals_for() { let map = get_map(); - let progressStates = vec![Progress::Complete, Progress::Some, Progress::None]; - for progressState in progressStates { + let progress_states = vec![Progress::Complete, Progress::Some, Progress::None]; + for progress_state in progress_states { assert_eq!( - count_for(&map, progressState), - count_iterator(&map, progressState) + count_for(&map, progress_state), + count_iterator(&map, progress_state) ); } } @@ -111,13 +111,13 @@ mod tests { #[test] fn count_collection_equals_for() { - let progressStates = vec![Progress::Complete, Progress::Some, Progress::None]; + let progress_states = vec![Progress::Complete, Progress::Some, Progress::None]; let collection = get_vec_map(); - for progressState in progressStates { + for progress_state in progress_states { assert_eq!( - count_collection_for(&collection, progressState), - count_collection_iterator(&collection, progressState) + count_collection_for(&collection, progress_state), + count_collection_iterator(&collection, progress_state) ); } } |
