diff --git a/src/lib.rs b/src/lib.rs index 2db1176..d5b540a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1728,8 +1728,7 @@ impl BitVec { self.nbits += 1; - let v = self.storage[block_at] | flag; // set the bit - self.storage[block_at] = v; + self.storage[block_at] = self.storage[block_at] | flag; // set the bit Ok(()) }