@@ -1707,13 +1707,15 @@ impl<'a, K, V, S> RawEntryMut<'a, K, V, S> {
1707
1707
impl < ' a , K , V , S > RawOccupiedEntryMut < ' a , K , V , S > {
1708
1708
/// Gets a reference to the key in the entry.
1709
1709
#[ inline]
1710
+ #[ must_use]
1710
1711
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
1711
1712
pub fn key ( & self ) -> & K {
1712
1713
self . base . key ( )
1713
1714
}
1714
1715
1715
1716
/// Gets a mutable reference to the key in the entry.
1716
1717
#[ inline]
1718
+ #[ must_use]
1717
1719
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
1718
1720
pub fn key_mut ( & mut self ) -> & mut K {
1719
1721
self . base . key_mut ( )
@@ -1730,6 +1732,7 @@ impl<'a, K, V, S> RawOccupiedEntryMut<'a, K, V, S> {
1730
1732
1731
1733
/// Gets a reference to the value in the entry.
1732
1734
#[ inline]
1735
+ #[ must_use]
1733
1736
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
1734
1737
pub fn get ( & self ) -> & V {
1735
1738
self . base . get ( )
@@ -1746,13 +1749,15 @@ impl<'a, K, V, S> RawOccupiedEntryMut<'a, K, V, S> {
1746
1749
1747
1750
/// Gets a mutable reference to the value in the entry.
1748
1751
#[ inline]
1752
+ #[ must_use]
1749
1753
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
1750
1754
pub fn get_mut ( & mut self ) -> & mut V {
1751
1755
self . base . get_mut ( )
1752
1756
}
1753
1757
1754
1758
/// Gets a reference to the key and value in the entry.
1755
1759
#[ inline]
1760
+ #[ must_use]
1756
1761
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
1757
1762
pub fn get_key_value ( & mut self ) -> ( & K , & V ) {
1758
1763
self . base . get_key_value ( )
0 commit comments