[code] remove unnecessary reference
This commit is contained in:
parent
490c53a280
commit
fd36faae13
@ -29,7 +29,7 @@ fn find_next_prime(nr: &mut u64, sieve: &mut [bool]) -> Option<u64> {
|
||||
.iter()
|
||||
.enumerate()
|
||||
.skip(start_idx)
|
||||
.find(|&(_, &is_prime)| is_prime)
|
||||
.find(|(_, &is_prime)| is_prime)
|
||||
{
|
||||
*nr = idx as u64;
|
||||
return Some(*nr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user