Don't access self.mask with a single shard
This commit is contained in:
parent
6620882089
commit
5843858c01
@ -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))]
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user