1- #![ allow( clippy:: unwrap_used) ]
2-
1+ #![ allow( unused, clippy:: indexing_slicing, clippy:: panic, clippy:: unwrap_used) ]
32mod mock;
43use frame_support:: { assert_ok, weights:: Weight } ;
54use frame_system:: Config ;
@@ -283,7 +282,7 @@ fn test_migration_delete_subnet_21() {
283282#[ test]
284283fn test_migrate_fix_total_coldkey_stake ( ) {
285284 new_test_ext ( 1 ) . execute_with ( || {
286- let migration_name = "fix_total_coldkey_stake_v7" ;
285+ let _migration_name = "fix_total_coldkey_stake_v7" ;
287286 let coldkey = U256 :: from ( 0 ) ;
288287 TotalColdkeyStake :: < Test > :: insert ( coldkey, 0 ) ;
289288 StakingHotkeys :: < Test > :: insert ( coldkey, vec ! [ U256 :: from( 1 ) , U256 :: from( 2 ) , U256 :: from( 3 ) ] ) ;
@@ -299,7 +298,7 @@ fn test_migrate_fix_total_coldkey_stake() {
299298#[ test]
300299fn test_migrate_fix_total_coldkey_stake_value_already_in_total ( ) {
301300 new_test_ext ( 1 ) . execute_with ( || {
302- let migration_name = "fix_total_coldkey_stake_v7" ;
301+ let _migration_name = "fix_total_coldkey_stake_v7" ;
303302 let coldkey = U256 :: from ( 0 ) ;
304303 TotalColdkeyStake :: < Test > :: insert ( coldkey, 100000000 ) ;
305304 StakingHotkeys :: < Test > :: insert ( coldkey, vec ! [ U256 :: from( 1 ) , U256 :: from( 2 ) , U256 :: from( 3 ) ] ) ;
@@ -315,7 +314,7 @@ fn test_migrate_fix_total_coldkey_stake_value_already_in_total() {
315314#[ test]
316315fn test_migrate_fix_total_coldkey_stake_no_entry ( ) {
317316 new_test_ext ( 1 ) . execute_with ( || {
318- let migration_name = "fix_total_coldkey_stake_v7" ;
317+ let _migration_name = "fix_total_coldkey_stake_v7" ;
319318 let coldkey = U256 :: from ( 0 ) ;
320319 StakingHotkeys :: < Test > :: insert ( coldkey, vec ! [ U256 :: from( 1 ) , U256 :: from( 2 ) , U256 :: from( 3 ) ] ) ;
321320 Stake :: < Test > :: insert ( U256 :: from ( 1 ) , U256 :: from ( 0 ) , 10000 ) ;
@@ -330,7 +329,7 @@ fn test_migrate_fix_total_coldkey_stake_no_entry() {
330329#[ test]
331330fn test_migrate_fix_total_coldkey_stake_no_entry_in_hotkeys ( ) {
332331 new_test_ext ( 1 ) . execute_with ( || {
333- let migration_name = "fix_total_coldkey_stake_v7" ;
332+ let _migration_name = "fix_total_coldkey_stake_v7" ;
334333 let coldkey = U256 :: from ( 0 ) ;
335334 TotalColdkeyStake :: < Test > :: insert ( coldkey, 100000000 ) ;
336335 StakingHotkeys :: < Test > :: insert ( coldkey, vec ! [ U256 :: from( 1 ) , U256 :: from( 2 ) , U256 :: from( 3 ) ] ) ;
@@ -343,7 +342,7 @@ fn test_migrate_fix_total_coldkey_stake_no_entry_in_hotkeys() {
343342#[ test]
344343fn test_migrate_fix_total_coldkey_stake_one_hotkey_stake_missing ( ) {
345344 new_test_ext ( 1 ) . execute_with ( || {
346- let migration_name = "fix_total_coldkey_stake_v7" ;
345+ let _migration_name = "fix_total_coldkey_stake_v7" ;
347346 let coldkey = U256 :: from ( 0 ) ;
348347 TotalColdkeyStake :: < Test > :: insert ( coldkey, 100000000 ) ;
349348 StakingHotkeys :: < Test > :: insert ( coldkey, vec ! [ U256 :: from( 1 ) , U256 :: from( 2 ) , U256 :: from( 3 ) ] ) ;
0 commit comments