@@ -144,7 +144,7 @@ impl<T> Entry<T> {
144144 // Insert an Occupied entry in place of a vacant one.
145145 fn swap ( & mut self , value : T , generation : Gen ) {
146146 debug_assert ! ( matches!( self , Entry :: Vacant ( _) ) ) ;
147- std :: mem :: swap ( self , & mut Entry :: Occupied ( value, generation) ) ;
147+ * self = Entry :: Occupied ( value, generation) ;
148148 }
149149
150150 // Create a new occupied entry
@@ -437,7 +437,7 @@ where
437437 Entry :: Vacant ( key) => {
438438 let _ = write ! ( & mut s, "{idx}: vacant " ) ;
439439 match key {
440- Some ( key) => writeln ! ( & mut s, "next key: {:?}" , key ) ,
440+ Some ( key) => writeln ! ( & mut s, "next key: {key :?}" ) ,
441441 None => writeln ! ( & mut s, "no next id" ) ,
442442 }
443443 }
@@ -451,7 +451,7 @@ where
451451 let _ = writeln ! ( & mut s, "---- next id ----" ) ;
452452
453453 let _ = match self . next_id {
454- Some ( key) => writeln ! ( & mut s, "next key: {:?}" , key ) ,
454+ Some ( key) => writeln ! ( & mut s, "next key: {key :?}" ) ,
455455 None => writeln ! ( & mut s, "no next id" ) ,
456456 } ;
457457
0 commit comments