fix compile warnings

This commit is contained in:
b1ek 2023-08-02 21:48:56 +10:00
parent 8f631cb6b5
commit ae88d81242
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
use std::{sync::{mpsc::{self, Receiver, SyncSender}, Arc, atomic::{AtomicBool, Ordering}}, thread::{self, JoinHandle}};
use std::{sync::{mpsc, Arc, atomic::{AtomicBool, Ordering}}, thread::{self, JoinHandle}};
use crate::{gen::POWChallenge, num::Num};
@ -77,7 +77,7 @@ impl POWSolver {
let stop = Arc::new(AtomicBool::new(false));
let range = self.challenge.range.max - self.challenge.range.min;
for i in 0..threads {
for _ in 0..threads {
let solver = self.clone();
let send = send.clone();
let stop = stop.clone();