Skip to content

Commit

Permalink
Rollup merge of rust-lang#92620 - steffahn:remove_unused_ExtendDefaul…
Browse files Browse the repository at this point in the history
…t_struct, r=Mark-Simulacrum

Remove unused `ExtendDefault` struct

As noted in rust-lang#77850 (comment), this struct is no longer used.
  • Loading branch information
matthiaskrgr authored Jan 6, 2022
2 parents 140b6cb + d5d752a commit fcae1d6
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 fcae1d6

Please sign in to comment.