Specify the edition for the rustdoc thread-pool
This commit is contained in:
parent
a1f2dceaeb
commit
0b37900b40
2 changed files with 8 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue