fix some pedantic clippy lints that make sense
- clippy::redundant-closure-for-method-calls - clippy::explicit-iter-loop
This commit is contained in:
parent
449cdc0157
commit
e25bc47f8f
20 changed files with 59 additions and 66 deletions
|
|
@ -48,10 +48,10 @@ fn part1(input: &str) -> Result<usize> {
|
|||
}
|
||||
|
||||
let mut best = None;
|
||||
for a in asteroids.iter() {
|
||||
for a in &asteroids {
|
||||
let mut set = HashSet::new();
|
||||
|
||||
for b in asteroids.iter() {
|
||||
for b in &asteroids {
|
||||
if a == b {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue