Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
senekor committed Nov 17, 2023
1 parent a0eebd0 commit 1e2f2d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/practice/custom-set/.meta/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ impl<T: Ord + Clone> CustomSet<T> {
&self
.collection
.iter()
.cloned()
.filter(|c| other.contains(c))
.cloned()
.collect::<Vec<_>>(),
)
}
Expand All @@ -61,8 +61,8 @@ impl<T: Ord + Clone> CustomSet<T> {
&self
.collection
.iter()
.chain(other.collection.iter())
.cloned()
.chain(other.collection.iter().cloned())
.collect::<Vec<_>>(),
)
}
Expand All @@ -73,8 +73,8 @@ impl<T: Ord + Clone> CustomSet<T> {
&self
.collection
.iter()
.cloned()
.filter(|c| !other.contains(c))
.cloned()
.collect::<Vec<_>>(),
)
}
Expand Down
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1e2f2d3

Please sign in to comment.