@@ -1132,24 +1132,24 @@ fn test_swap_hotkey_with_pending_emissions() {
11321132 add_network ( netuid, 0 , 1 ) ;
11331133
11341134 // Set up pending emissions
1135- PendingdHotkeyEmission :: < Test > :: insert ( & old_hotkey, pending_emission) ;
1135+ PendingdHotkeyEmission :: < Test > :: insert ( old_hotkey, pending_emission) ;
11361136 // Verify the pending emissions are set
11371137 assert_eq ! (
1138- PendingdHotkeyEmission :: <Test >:: get( & old_hotkey) ,
1138+ PendingdHotkeyEmission :: <Test >:: get( old_hotkey) ,
11391139 pending_emission
11401140 ) ;
11411141 // Verify the new hotkey does not have any pending emissions
1142- assert ! ( !PendingdHotkeyEmission :: <Test >:: contains_key( & new_hotkey) ) ;
1142+ assert ! ( !PendingdHotkeyEmission :: <Test >:: contains_key( new_hotkey) ) ;
11431143
11441144 // Perform the swap
11451145 SubtensorModule :: perform_hotkey_swap ( & old_hotkey, & new_hotkey, & coldkey, & mut weight) ;
11461146
11471147 // Verify the pending emissions are transferred
11481148 assert_eq ! (
1149- PendingdHotkeyEmission :: <Test >:: get( & new_hotkey) ,
1149+ PendingdHotkeyEmission :: <Test >:: get( new_hotkey) ,
11501150 pending_emission
11511151 ) ;
1152- assert ! ( !PendingdHotkeyEmission :: <Test >:: contains_key( & old_hotkey) ) ;
1152+ assert ! ( !PendingdHotkeyEmission :: <Test >:: contains_key( old_hotkey) ) ;
11531153 } ) ;
11541154}
11551155
@@ -1160,7 +1160,7 @@ fn test_swap_hotkeys_last_add_stake_increase() {
11601160 let old_hotkey = U256 :: from ( 1 ) ;
11611161 let new_hotkey = U256 :: from ( 2 ) ;
11621162 let coldkey = U256 :: from ( 3 ) ;
1163- let new_coldkeys = vec ! [ U256 :: from( 4 ) , U256 :: from( 5 ) ] ;
1163+ let new_coldkeys = [ U256 :: from ( 4 ) , U256 :: from ( 5 ) ] ;
11641164 let netuid = 0u16 ;
11651165 let mut weight = Weight :: zero ( ) ;
11661166
@@ -1171,10 +1171,10 @@ fn test_swap_hotkeys_last_add_stake_increase() {
11711171
11721172 // Setup LastAddStakeIncrease map
11731173 for new_coldkey in new_coldkeys. iter ( ) {
1174- LastAddStakeIncrease :: < Test > :: insert ( & old_hotkey, & new_coldkey, 100 ) ;
1174+ LastAddStakeIncrease :: < Test > :: insert ( old_hotkey, new_coldkey, 100 ) ;
11751175 }
11761176 // Verify the LastAddStakeIncrease map is empty for the new hotkey
1177- assert ! ( LastAddStakeIncrease :: <Test >:: iter_prefix( & new_hotkey)
1177+ assert ! ( LastAddStakeIncrease :: <Test >:: iter_prefix( new_hotkey)
11781178 . next( )
11791179 . is_none( ) ) ;
11801180
@@ -1184,12 +1184,12 @@ fn test_swap_hotkeys_last_add_stake_increase() {
11841184 // Verify the LastAddStakeIncrease map is transferred
11851185 for new_coldkey in new_coldkeys. iter ( ) {
11861186 assert_eq ! (
1187- LastAddStakeIncrease :: <Test >:: get( & new_hotkey, & new_coldkey) ,
1187+ LastAddStakeIncrease :: <Test >:: get( new_hotkey, new_coldkey) ,
11881188 100
11891189 ) ;
11901190 assert ! ( !LastAddStakeIncrease :: <Test >:: contains_key(
1191- & old_hotkey,
1192- & new_coldkey
1191+ old_hotkey,
1192+ new_coldkey
11931193 ) ) ;
11941194 }
11951195 } ) ;
0 commit comments