Bump insert_entry stabilization to Rust 1.59
This commit is contained in:
parent
09b0780719
commit
a2fd84a125
1 changed files with 2 additions and 2 deletions
|
@ -2458,7 +2458,7 @@ impl<'a, K, V> Entry<'a, K, V> {
|
|||
/// assert_eq!(entry.key(), &"poneyland");
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "entry_insert", since = "1.58.0")]
|
||||
#[stable(feature = "entry_insert", since = "1.59.0")]
|
||||
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
|
||||
match self {
|
||||
Occupied(mut entry) => {
|
||||
|
@ -2803,7 +2803,7 @@ impl<'a, K: 'a, V: 'a> VacantEntry<'a, K, V> {
|
|||
/// assert_eq!(map["poneyland"], 37);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "entry_insert", since = "1.58.0")]
|
||||
#[stable(feature = "entry_insert", since = "1.59.0")]
|
||||
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V> {
|
||||
let base = self.base.insert_entry(value);
|
||||
OccupiedEntry { base }
|
||||
|
|
Loading…
Reference in a new issue