1
Fork 0

implement lint for suspicious auto trait impls

This commit is contained in:
lcnr 2022-01-27 10:49:52 +01:00
parent 7fcf7745cc
commit ea624699e3
8 changed files with 359 additions and 7 deletions

View file

@ -938,6 +938,12 @@ pub struct GrowableBitSet<T: Idx> {
bit_set: BitSet<T>,
}
impl<T: Idx> Default for GrowableBitSet<T> {
fn default() -> Self {
GrowableBitSet::new_empty()
}
}
impl<T: Idx> GrowableBitSet<T> {
/// Ensure that the set can hold at least `min_domain_size` elements.
pub fn ensure(&mut self, min_domain_size: usize) {