Skip to content

Commit

Permalink
Remove inline on Vec::shrink_to_fit as asked by Alex
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Apr 8, 2018
1 parent 360f2f0 commit d4dff03
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,6 @@ impl<T> Vec<T> {
/// assert!(vec.capacity() >= 3);
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[inline]
pub fn shrink_to_fit(&mut self) {
if self.capacity() != self.len {
self.buf.shrink_to_fit(self.len);
Expand Down

0 comments on commit d4dff03

Please sign in to comment.