mirror of https://github.com/fafhrd91/actix-net
fix build
This commit is contained in:
parent
24eb56c3dc
commit
d6f3c78e48
|
@ -116,12 +116,11 @@ impl Availability {
|
||||||
panic!("Max WorkerHandle count is 512")
|
panic!("Max WorkerHandle count is 512")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let off = 1 << idx as u128;
|
||||||
if avail {
|
if avail {
|
||||||
self.0[offset] |= 1 << idx as u128;
|
self.0[offset] |= off;
|
||||||
} else {
|
} else {
|
||||||
let shift = 1 << idx as u128;
|
self.0[offset] &= !off
|
||||||
|
|
||||||
self.0[offset] &= ~shift
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue