This commit is contained in:
2018-01-05 19:27:29 +01:00
parent 2ab88456ca
commit ab66c25813

View File

@@ -119,12 +119,11 @@ impl BitSet {
if self.len() > other.len() { if self.len() > other.len() {
false false
} else { } else {
self.blocks.iter() self.blocks
.all(|(key, block_a)| { .iter()
match other.blocks.get(key) { .all(|(key, block_a)| match other.blocks.get(key) {
Some(block_b) => block_a | block_b == *block_b, Some(block_b) => block_a | block_b == *block_b,
None => false None => false,
}
}) })
} }
} }