1
Fork 0

Remove inline on Vec::shrink_to_fit as asked by Alex

This commit is contained in:
Anthony Ramine 2018-04-08 09:03:33 +02:00
parent 360f2f036d
commit d4dff03e7c

View file

@ -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);