mirror of
https://github.com/servo/servo.git
synced 2025-08-29 00:58:20 +01:00
bump required rayon version to 0.7
...and bring jpeg-decoder along for the ride. Minor tweaks were necessary because of rayon API changes.
This commit is contained in:
parent
7fc01437f4
commit
681b578326
9 changed files with 35 additions and 17 deletions
|
@ -40,7 +40,7 @@ lazy_static! {
|
|||
None
|
||||
} else {
|
||||
let configuration =
|
||||
rayon::Configuration::new().set_num_threads(num_threads);
|
||||
rayon::Configuration::new().num_threads(num_threads);
|
||||
let pool = rayon::ThreadPool::new(configuration).ok();
|
||||
pool
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue