From 9a8a56fe971f8ca6c7135462be192ace9568639d Mon Sep 17 00:00:00 2001 From: mlokr Date: Fri, 19 Jul 2024 12:34:22 +0200 Subject: [PATCH] b --- hblang/src/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hblang/src/lib.rs b/hblang/src/lib.rs index f5e33cdea..636325d92 100644 --- a/hblang/src/lib.rs +++ b/hblang/src/lib.rs @@ -444,11 +444,7 @@ pub fn parse_from_fs(extra_threads: usize, root: &str) -> io::Result> { seen.lock().unwrap().insert(path.clone(), 0); tasks.push((0, path, None)); - if extra_threads == 0 { - thread(); - } else { - std::thread::scope(|s| (0..extra_threads + 1).for_each(|_| _ = s.spawn(thread))); - } + std::thread::scope(|s| (0..extra_threads + 1).for_each(|_| _ = s.spawn(thread))); ast.into_inner().unwrap().into_iter().collect::>>() }