diff options
| author | marisa <mokou@fastmail.com> | 2021-06-24 14:17:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-24 14:17:05 +0200 |
| commit | a3ea37b76e3d544fa5baf08bf1a0576bbdb33915 (patch) | |
| tree | 59a880f611d90078240b4a497ef83b702769b2d4 | |
| parent | ec63cadadb51b43738b29b1acedf815464bc86aa (diff) | |
| parent | 4e079fdd0829ab271508c773aa814b21d6cff32b (diff) | |
Merge pull request #771 from tlyu/iterators5-trait-tweak
fix(iterators5): derive Clone, Copy
| -rw-r--r-- | exercises/standard_library_types/iterators5.rs | 2 | ||||
| -rw-r--r-- | info.toml | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/exercises/standard_library_types/iterators5.rs b/exercises/standard_library_types/iterators5.rs index d8d4453..765028a 100644 --- a/exercises/standard_library_types/iterators5.rs +++ b/exercises/standard_library_types/iterators5.rs @@ -15,7 +15,7 @@ use std::collections::HashMap; -#[derive(PartialEq, Eq)] +#[derive(Clone, Copy, PartialEq, Eq)] enum Progress { None, Some, @@ -798,7 +798,10 @@ test count_iterator. The collection variable in count_collection_iterator is a slice of HashMaps. It needs to be converted into an iterator in order to use the iterator methods. -The fold method can be useful in the count_collection_iterator function.""" +The fold method can be useful in the count_collection_iterator function. + +For a further challenge, consult the documentation for Iterator to find +a different method that could make your code more compact than using fold.""" # THREADS |
