Don't access self.mask with a single shard
This commit is contained in:
parent
6620882089
commit
5843858c01
@ -46,7 +46,7 @@ pub fn new(mut value: impl FnMut() -> T) -> Self {
|
||||
fn mask(&self) -> usize {
|
||||
#[cfg(parallel_compiler)]
|
||||
{
|
||||
self.mask
|
||||
if SHARDS == 1 { 0 } else { self.mask }
|
||||
}
|
||||
#[cfg(not(parallel_compiler))]
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user