diff --git a/src/sieve.rs b/src/sieve.rs index c531cde..372948d 100644 --- a/src/sieve.rs +++ b/src/sieve.rs @@ -29,7 +29,7 @@ fn find_next_prime(nr: &mut u64, sieve: &mut [bool]) -> Option { .iter() .enumerate() .skip(start_idx) - .find(|&(_, &is_prime)| is_prime) + .find(|(_, &is_prime)| is_prime) { *nr = idx as u64; return Some(*nr);