This commit is contained in:
Will Crichton 2021-08-26 12:14:37 -07:00
parent 953d685ea1
commit acba31c333

View File

@ -379,9 +379,9 @@ impl<T: Idx> BitRelations<HybridBitSet<T>> for HybridBitSet<T> {
fn union(&mut self, other: &HybridBitSet<T>) -> bool { fn union(&mut self, other: &HybridBitSet<T>) -> bool {
assert_eq!(self.domain_size(), other.domain_size()); assert_eq!(self.domain_size(), other.domain_size());
match self { match self {
HybridBitSet::Sparse(self_sparse) => { HybridBitSet::Sparse(_) => {
match other { match other {
HybridBitSet::Sparse(_) => { HybridBitSet::Sparse(other_sparse) => {
// Both sets are sparse. Add the elements in // Both sets are sparse. Add the elements in
// `other_sparse` to `self` one at a time. This // `other_sparse` to `self` one at a time. This
// may or may not cause `self` to be densified. // may or may not cause `self` to be densified.