We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8d2e82 commit d83a83fCopy full SHA for d83a83f
library/core/src/iter/traits/collect.rs
@@ -154,7 +154,7 @@ pub trait FromIterator<A>: Sized {
154
155
// implement `FromIterator` for type with Default and Extend
156
impl<T, A: Default + Extend<T>> FromIterator<T> for A {
157
- fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self {
+ default fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self {
158
let mut collection = A::default();
159
collection.extend(iter);
160
collection
0 commit comments