@@ -2315,15 +2315,15 @@ impl<'a, T> IterMut<'a, T> {
2315
2315
self . cursor = Some ( Cursor :: Head ) ;
2316
2316
}
2317
2317
2318
- let entry = unsafe { & mut ( * self . map ) . entries [ self . entry ] } ;
2318
+ let entry = & mut unsafe { & mut * self . map } . entries [ self . entry ] ;
2319
2319
2320
2320
match self . cursor . unwrap ( ) {
2321
2321
Head => {
2322
2322
self . cursor = entry. links . map ( |l| Values ( l. next ) ) ;
2323
2323
Some ( ( & entry. key , & mut entry. value as * mut _ ) )
2324
2324
}
2325
2325
Values ( idx) => {
2326
- let extra = unsafe { & mut ( * self . map ) . extra_values [ idx] } ;
2326
+ let extra = & mut unsafe { & mut ( * self . map ) } . extra_values [ idx] ;
2327
2327
2328
2328
match extra. next {
2329
2329
Link :: Entry ( _) => self . cursor = None ,
@@ -2963,7 +2963,7 @@ impl<'a, T: 'a> Iterator for ValueIterMut<'a, T> {
2963
2963
fn next ( & mut self ) -> Option < Self :: Item > {
2964
2964
use self :: Cursor :: * ;
2965
2965
2966
- let entry = unsafe { & mut ( * self . map ) . entries [ self . index ] } ;
2966
+ let entry = & mut unsafe { & mut * self . map } . entries [ self . index ] ;
2967
2967
2968
2968
match self . front {
2969
2969
Some ( Head ) => {
@@ -2983,7 +2983,7 @@ impl<'a, T: 'a> Iterator for ValueIterMut<'a, T> {
2983
2983
Some ( & mut entry. value )
2984
2984
}
2985
2985
Some ( Values ( idx) ) => {
2986
- let extra = unsafe { & mut ( * self . map ) . extra_values [ idx] } ;
2986
+ let extra = & mut unsafe { & mut * self . map } . extra_values [ idx] ;
2987
2987
2988
2988
if self . front == self . back {
2989
2989
self . front = None ;
@@ -3006,7 +3006,7 @@ impl<'a, T: 'a> DoubleEndedIterator for ValueIterMut<'a, T> {
3006
3006
fn next_back ( & mut self ) -> Option < Self :: Item > {
3007
3007
use self :: Cursor :: * ;
3008
3008
3009
- let entry = unsafe { & mut ( * self . map ) . entries [ self . index ] } ;
3009
+ let entry = & mut unsafe { & mut * self . map } . entries [ self . index ] ;
3010
3010
3011
3011
match self . back {
3012
3012
Some ( Head ) => {
@@ -3015,7 +3015,7 @@ impl<'a, T: 'a> DoubleEndedIterator for ValueIterMut<'a, T> {
3015
3015
Some ( & mut entry. value )
3016
3016
}
3017
3017
Some ( Values ( idx) ) => {
3018
- let extra = unsafe { & mut ( * self . map ) . extra_values [ idx] } ;
3018
+ let extra = & mut unsafe { & mut * self . map } . extra_values [ idx] ;
3019
3019
3020
3020
if self . front == self . back {
3021
3021
self . front = None ;
0 commit comments