fix typo with creating threadpool in RunState

This commit is contained in:
rezural
2020-12-24 21:24:04 +11:00
parent 5ffacf0a14
commit 70d05cc63f

View File

@@ -18,7 +18,10 @@ impl RunState {
pub fn new() -> Self { pub fn new() -> Self {
Self { Self {
#[cfg(feature = "parallel")] #[cfg(feature = "parallel")]
thread_pool: rapier::rayon::ThreadPool, thread_pool: rapier::rayon::ThreadPoolBuilder::new()
.num_threads(num_threads)
.build()
.unwrap(),
timestep_id: 0, timestep_id: 0,
time: 0.0, time: 0.0,
} }