From 7a6f1e7152fd7f78bd5b42776d2e91849bf0c6bb Mon Sep 17 00:00:00 2001 From: "Jorge C. Leitao" Date: Wed, 18 Aug 2021 13:25:04 +0000 Subject: [PATCH] Fixed --- src/bitmap/mutable.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/bitmap/mutable.rs b/src/bitmap/mutable.rs index 236e9992220..eed57fcdfcd 100644 --- a/src/bitmap/mutable.rs +++ b/src/bitmap/mutable.rs @@ -78,10 +78,8 @@ impl MutableBitmap { if self.length % 8 == 0 { self.buffer.push(0); } - if value { - let byte = self.buffer.as_mut_slice().last_mut().unwrap(); - *byte = set(*byte, self.length % 8, true); - }; + let byte = self.buffer.as_mut_slice().last_mut().unwrap(); + *byte = set(*byte, self.length % 8, value); self.length += 1; }