From fd36faae13c87bb22911f457678d526010403b94 Mon Sep 17 00:00:00 2001 From: ddidderr Date: Sat, 28 Sep 2024 12:59:31 +0200 Subject: [PATCH] [code] remove unnecessary reference --- src/sieve.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);