Skip to content

Commit

Permalink
Remove Default and FromIter from veb
Browse files Browse the repository at this point in the history
  • Loading branch information
ngtkana committed Mar 3, 2024
1 parent 66e39ee commit fffe2e2
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions libs/veb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,22 +404,6 @@ impl VebSet {
}
}

impl Default for VebSet {
fn default() -> Self {
Self::new(0)
}
}

impl std::iter::FromIterator<usize> for VebSet {
fn from_iter<T: IntoIterator<Item = usize>>(iter: T) -> Self {
let mut veb = VebSet::default();
for i in iter {
veb.insert(i);
}
veb
}
}

impl std::fmt::Debug for VebSet {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_set().entries(self.collect()).finish()
Expand Down

0 comments on commit fffe2e2

Please sign in to comment.