Clarify run_in_thread_pool_with_globals.
- Make the structure of the two variants more similar. - Add some comments. - Move various conditional `use` items inside the function that uses them. - Inline some closures.
This commit is contained in:
@@ -190,6 +190,7 @@ impl<'a, 'b> RunCompiler<'a, 'b> {
|
||||
run_compiler(self.at_args, self.callbacks, self.file_loader, self.make_codegen_backend)
|
||||
}
|
||||
}
|
||||
|
||||
fn run_compiler(
|
||||
at_args: &[String],
|
||||
callbacks: &mut (dyn Callbacks + Send),
|
||||
|
||||
Reference in New Issue
Block a user