diff --git a/src/lib.rs b/src/lib.rs index 80bce4b..a8929f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -289,7 +289,7 @@ impl Executor { let thread_limit = inner .thread_limit - .get_or_insert_with(|| Self::max_threads()) + .get_or_insert_with(Self::max_threads) .get(); // If runnable tasks greatly outnumber idle threads and there aren't too many threads