Skip to content

Commit

Permalink
Use a canonical name for extend_reserve(additional)
Browse files Browse the repository at this point in the history
Co-authored-by: David Tolnay <dtolnay@gmail.com>
  • Loading branch information
cuviper and dtolnay committed May 30, 2020
1 parent 6700e18 commit e434554
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libcore/iter/traits/collect.rs
Expand Up @@ -352,7 +352,9 @@ pub trait Extend<A> {
///
/// The default implementation does nothing.
#[unstable(feature = "extend_one", issue = "none")]
fn extend_reserve(&mut self, _additional: usize) {}
fn extend_reserve(&mut self, additional: usize) {
let _ = additional;
}
}

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

0 comments on commit e434554

Please sign in to comment.