Skip to content

Commit fcae1d6

Browse files
authored
Rollup merge of #92620 - steffahn:remove_unused_ExtendDefault_struct, r=Mark-Simulacrum
Remove unused `ExtendDefault` struct As noted in #77850 (comment), this struct is no longer used.
2 parents 140b6cb + d5d752a commit fcae1d6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

library/alloc/src/vec/mod.rs

-10
Original file line numberDiff line numberDiff line change
@@ -2277,16 +2277,6 @@ impl<T: Clone> ExtendWith<T> for ExtendElement<T> {
22772277
}
22782278
}
22792279

2280-
struct ExtendDefault;
2281-
impl<T: Default> ExtendWith<T> for ExtendDefault {
2282-
fn next(&mut self) -> T {
2283-
Default::default()
2284-
}
2285-
fn last(self) -> T {
2286-
Default::default()
2287-
}
2288-
}
2289-
22902280
struct ExtendFunc<F>(F);
22912281
impl<T, F: FnMut() -> T> ExtendWith<T> for ExtendFunc<F> {
22922282
fn next(&mut self) -> T {

0 commit comments

Comments
 (0)