From ae88d81242befbee7df4cb2de758842915a1b62b Mon Sep 17 00:00:00 2001 From: b1ek Date: Wed, 2 Aug 2023 21:48:56 +1000 Subject: [PATCH] fix compile warnings --- src/solver.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/solver.rs b/src/solver.rs index d5a5504..e7ae4d5 100644 --- a/src/solver.rs +++ b/src/solver.rs @@ -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();