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 1de3ebb commit 6a26bb9Copy full SHA for 6a26bb9
src/libcore/iter/traits/collect.rs
@@ -352,7 +352,9 @@ pub trait Extend<A> {
352
///
353
/// The default implementation does nothing.
354
#[unstable(feature = "extend_one", issue = "none")]
355
- fn extend_reserve(&mut self, _additional: usize) {}
+ fn extend_reserve(&mut self, additional: usize) {
356
+ let _ = additional;
357
+ }
358
}
359
360
#[stable(feature = "extend_for_unit", since = "1.28.0")]
0 commit comments