diff --git a/exercises/practice/custom-set/.meta/example.rs b/exercises/practice/custom-set/.meta/example.rs index ecb66442d..9a2c918e5 100644 --- a/exercises/practice/custom-set/.meta/example.rs +++ b/exercises/practice/custom-set/.meta/example.rs @@ -49,8 +49,8 @@ impl CustomSet { &self .collection .iter() - .cloned() .filter(|c| other.contains(c)) + .cloned() .collect::>(), ) } @@ -61,8 +61,8 @@ impl CustomSet { &self .collection .iter() + .chain(other.collection.iter()) .cloned() - .chain(other.collection.iter().cloned()) .collect::>(), ) } @@ -73,8 +73,8 @@ impl CustomSet { &self .collection .iter() - .cloned() .filter(|c| !other.contains(c)) + .cloned() .collect::>(), ) } diff --git a/justfile b/justfile index eb2895877..61f517658 100644 --- a/justfile +++ b/justfile @@ -12,6 +12,7 @@ test: ./bin/lint_markdown.sh # TODO shellcheck ./bin/check_exercises.sh + CLIPPY=true ./bin/check_exercises.sh ./bin/ensure_stubs_compile.sh cd rust-tooling && cargo test # TODO format exercises