Skip to content

Commit

Permalink
remove unused ExtendDefault struct
Browse files Browse the repository at this point in the history
  • Loading branch information
steffahn committed Jan 6, 2022
1 parent a77cc64 commit d5d752a
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2277,16 +2277,6 @@ impl<T: Clone> ExtendWith<T> for ExtendElement<T> {
}
}

struct ExtendDefault;
impl<T: Default> ExtendWith<T> for ExtendDefault {
fn next(&mut self) -> T {
Default::default()
}
fn last(self) -> T {
Default::default()
}
}

struct ExtendFunc<F>(F);
impl<T, F: FnMut() -> T> ExtendWith<T> for ExtendFunc<F> {
fn next(&mut self) -> T {
Expand Down

0 comments on commit d5d752a

Please sign in to comment.