Skip to content

Commit e434554

Browse files
cuviperdtolnay
andcommitted
Use a canonical name for extend_reserve(additional)
Co-authored-by: David Tolnay <[email protected]>
1 parent 6700e18 commit e434554

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libcore/iter/traits/collect.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ pub trait Extend<A> {
352352
///
353353
/// The default implementation does nothing.
354354
#[unstable(feature = "extend_one", issue = "none")]
355-
fn extend_reserve(&mut self, _additional: usize) {}
355+
fn extend_reserve(&mut self, additional: usize) {
356+
let _ = additional;
357+
}
356358
}
357359

358360
#[stable(feature = "extend_for_unit", since = "1.28.0")]

0 commit comments

Comments
 (0)