implement lint for suspicious auto trait impls
This commit is contained in:
parent
7fcf7745cc
commit
ea624699e3
8 changed files with 359 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue