Don't access self.mask with a single shard

This commit is contained in:
John Kåre Alsaker 2023-05-28 15:47:44 +02:00
parent 6620882089
commit 5843858c01

View File

@ -46,7 +46,7 @@ impl<T> Sharded<T> {
fn mask(&self) -> usize { fn mask(&self) -> usize {
#[cfg(parallel_compiler)] #[cfg(parallel_compiler)]
{ {
self.mask if SHARDS == 1 { 0 } else { self.mask }
} }
#[cfg(not(parallel_compiler))] #[cfg(not(parallel_compiler))]
{ {