mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Bump shrink_to stabilization to Rust 1.56
This commit is contained in:
@@ -1110,7 +1110,7 @@ pub fn shrink_to_fit(&mut self) {
|
||||
/// ```
|
||||
#[cfg(not(no_global_oom_handling))]
|
||||
#[inline]
|
||||
#[stable(feature = "shrink_to", since = "1.55.0")]
|
||||
#[stable(feature = "shrink_to", since = "1.56.0")]
|
||||
pub fn shrink_to(&mut self, min_capacity: usize) {
|
||||
self.vec.shrink_to(min_capacity)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user