fix compile warnings
This commit is contained in:
parent
8f631cb6b5
commit
ae88d81242
|
@ -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};
|
use crate::{gen::POWChallenge, num::Num};
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ impl POWSolver {
|
||||||
let stop = Arc::new(AtomicBool::new(false));
|
let stop = Arc::new(AtomicBool::new(false));
|
||||||
let range = self.challenge.range.max - self.challenge.range.min;
|
let range = self.challenge.range.max - self.challenge.range.min;
|
||||||
|
|
||||||
for i in 0..threads {
|
for _ in 0..threads {
|
||||||
let solver = self.clone();
|
let solver = self.clone();
|
||||||
let send = send.clone();
|
let send = send.clone();
|
||||||
let stop = stop.clone();
|
let stop = stop.clone();
|
||||||
|
|
Loading…
Reference in New Issue