1
Fork 0

Specify the edition for the rustdoc thread-pool

This commit is contained in:
John Kåre Alsaker 2019-05-20 03:39:48 +02:00
parent a1f2dceaeb
commit 0b37900b40
2 changed files with 8 additions and 5 deletions

View file

@ -143,10 +143,10 @@ where
)
}
pub fn default_thread_pool<F, R>(f: F) -> R
pub fn default_thread_pool<F, R>(edition: edition::Edition, f: F) -> R
where
F: FnOnce() -> R + Send,
R: Send,
{
util::spawn_thread_pool(edition::DEFAULT_EDITION, None, &None, f)
util::spawn_thread_pool(edition, None, &None, f)
}