refactored

This commit is contained in:
Jon-Eric Cook
2020-01-28 11:24:38 -08:00
committed by Michael Vines
parent 5df0478fa3
commit 44208ffa67

View File

@ -475,8 +475,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
let start = Instant::now(); let start = Instant::now();
let done = Arc::new(AtomicBool::new(false)); let done = Arc::new(AtomicBool::new(false));
let _threads = 0..num_cpus::get(); for _ in 0..num_cpus::get() {
for _ in _threads {
let done = done.clone(); let done = done.clone();
let attempts = attempts.clone(); let attempts = attempts.clone();
let found = found.clone(); let found = found.clone();