From 8fb413a7bb57b43a4e31c5f67af0a0ee12504b4a Mon Sep 17 00:00:00 2001 From: z78078 Date: Mon, 4 Jul 2022 16:33:03 +0800 Subject: [PATCH] remove the style changes in nac3core/src/codegen/mod.rs --- nac3core/src/codegen/mod.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nac3core/src/codegen/mod.rs b/nac3core/src/codegen/mod.rs index 2b67f32e..a9c9dc33 100644 --- a/nac3core/src/codegen/mod.rs +++ b/nac3core/src/codegen/mod.rs @@ -159,7 +159,6 @@ impl WorkerRegistry { let handle = thread::spawn(move || { registry.worker_thread(generator.as_mut(), f); }); - let handle = thread::spawn(move || { if let Err(e) = handle.join() { if let Some(e) = e.downcast_ref::<&'static str>() { @@ -171,7 +170,6 @@ impl WorkerRegistry { registry2.wait_condvar.notify_all(); } }); - handles.push(handle); } (registry, handles) @@ -212,10 +210,7 @@ impl WorkerRegistry { self.sender.send(Some(task)).unwrap(); } - fn worker_thread( - &self, generator: - &mut G, f: Arc - ) { + fn worker_thread(&self, generator: &mut G, f: Arc) { let context = Context::create(); let mut builder = context.create_builder(); let mut module = context.create_module(generator.get_name());