Skip to content

Commit 502cb8a

Browse files
committed
chore: fix clippy warning
1 parent 15fb359 commit 502cb8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math/sieve_of_eratosthenes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn update_sieve(sieve: &mut [bool], end: usize, num: usize) {
5555
/// A vector containing all prime numbers extracted from the sieve.
5656
fn extract_primes(sieve: &[bool]) -> Vec<usize> {
5757
sieve
58-
.into_iter()
58+
.iter()
5959
.enumerate()
6060
.filter_map(|(num, is_prime)| if *is_prime { Some(num) } else { None })
6161
.collect()

0 commit comments

Comments
 (0)