mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-28 15:43:21 +00:00
remove unused ExtendDefault struct
This commit is contained in:
parent
a77cc64af4
commit
d5d752ab1e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user