Thread spawning: don't run min_stack if the user has specified stack size.

This commit is contained in:
Corey Farwell 2017-08-22 18:03:09 -04:00
parent a24e0f25d7
commit 1d5ee636d7

View File

@ -374,7 +374,7 @@ impl Builder {
{
let Builder { name, stack_size } = self;
let stack_size = stack_size.unwrap_or(util::min_stack());
let stack_size = stack_size.unwrap_or_else(util::min_stack);
let my_thread = Thread::new(name);
let their_thread = my_thread.clone();