[code] remove unnecessary reference

This commit is contained in:
ddidderr 2024-09-28 12:59:31 +02:00
parent 490c53a280
commit fd36faae13
Signed by: ddidderr
GPG Key ID: 3841F1C27E6F0E14

View File

@ -29,7 +29,7 @@ fn find_next_prime(nr: &mut u64, sieve: &mut [bool]) -> Option<u64> {
.iter() .iter()
.enumerate() .enumerate()
.skip(start_idx) .skip(start_idx)
.find(|&(_, &is_prime)| is_prime) .find(|(_, &is_prime)| is_prime)
{ {
*nr = idx as u64; *nr = idx as u64;
return Some(*nr); return Some(*nr);