Skip to content

Commit

Permalink
remove redundant variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jujumba committed Nov 14, 2024
1 parent 467efa7 commit 36b0088
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1728,8 +1728,7 @@ impl<B: BitBlock> BitVec<B> {

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(())
}
Expand Down

0 comments on commit 36b0088

Please sign in to comment.