chore: rustfmt
This commit is contained in:
parent
add6f2403c
commit
b7c61ccef8
|
@ -8,7 +8,12 @@ fn main() {
|
||||||
}
|
}
|
||||||
for i in sequence.clone() {
|
for i in sequence.clone() {
|
||||||
if i % 2 != 0 || i > 4000000 {
|
if i % 2 != 0 || i > 4000000 {
|
||||||
sequence.remove(sequence.iter().position(|x| *x == i).expect("Item not found"));
|
sequence.remove(
|
||||||
|
sequence
|
||||||
|
.iter()
|
||||||
|
.position(|x| *x == i)
|
||||||
|
.expect("Item not found"),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let sum: i32 = sequence.iter().sum();
|
let sum: i32 = sequence.iter().sum();
|
||||||
|
|
Loading…
Reference in a new issue