mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-03 17:35:28 +03:00
remove unused ExtendDefault struct
This commit is contained in:
@@ -2277,16 +2277,6 @@ fn last(self) -> 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 {
|
||||
|
||||
Reference in New Issue
Block a user