Remove inline on Vec::shrink_to_fit as asked by Alex
This commit is contained in:
parent
360f2f036d
commit
d4dff03e7c
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue