@@ -646,21 +646,20 @@ impl<'a, V> Entry<'a, V> {
646
646
}
647
647
}
648
648
649
- #[ unstable( feature = "entry" ,
650
- reason = "matches entry v3 specification, waiting for dust to settle" ) ]
651
- /// Ensures a value is in the entry by inserting the default if empty, and returns
652
- /// a mutable reference to the value in the entry.
649
+ #[ stable( feature = "vecmap_entry" , since = "1.2.0" ) ]
650
+ /// Ensures a value is in the entry by inserting the default if empty, and
651
+ /// returns a mutable reference to the value in the entry.
653
652
pub fn or_insert ( self , default : V ) -> & ' a mut V {
654
653
match self {
655
654
Occupied ( entry) => entry. into_mut ( ) ,
656
655
Vacant ( entry) => entry. insert ( default) ,
657
656
}
658
657
}
659
658
660
- #[ unstable ( feature = "entry" ,
661
- reason = "matches entry v3 specification, waiting for dust to settle" ) ]
662
- /// Ensures a value is in the entry by inserting the result of the default function if empty,
663
- /// and returns a mutable reference to the value in the entry.
659
+ #[ stable ( feature = "vecmap_entry" , since = "1.2.0" ) ]
660
+ /// Ensures a value is in the entry by inserting the result of the default
661
+ /// function if empty, and returns a mutable reference to the value in the
662
+ /// entry.
664
663
pub fn or_insert_with < F : FnOnce ( ) -> V > ( self , default : F ) -> & ' a mut V {
665
664
match self {
666
665
Occupied ( entry) => entry. into_mut ( ) ,
0 commit comments