Skip to content

Commit 3450cf6

Browse files
authored
Remove not needed lambda.
1 parent f1dab24 commit 3450cf6

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_interface/src

1 file changed

+1
-1
lines changed

compiler/rustc_interface/src/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pub fn setup_callbacks_and_run_in_thread_pool_with_globals<F: FnOnce() -> R + Se
187187
config = config.stack_size(size);
188188
}
189189

190-
let with_pool = move |pool: &rayon::ThreadPool| pool.install(move || f());
190+
let with_pool = move |pool: &rayon::ThreadPool| pool.install(f);
191191

192192
rustc_span::with_session_globals(edition, || {
193193
rustc_span::SESSION_GLOBALS.with(|session_globals| {

0 commit comments

Comments
 (0)