Skip to content

Commit 0ac67c9

Browse files
committed
chore: clpy
1 parent 29974a9 commit 0ac67c9

File tree

1 file changed

+2
-3
lines changed
  • pallets/admin-utils/src/tests

1 file changed

+2
-3
lines changed

pallets/admin-utils/src/tests/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,11 +2631,10 @@ fn test_trim_to_max_allowed_uids() {
26312631
// Actual number of neurons on the network updated after trimming
26322632
assert_eq!(SubnetworkN::<Test>::get(netuid), new_max_n);
26332633

2634-
for i in 0..new_max_n {
2635-
let i = i as u16;
2634+
for i in 0..new_max_n.into() {
26362635
let hotkey = Keys::<Test>::get(netuid, i);
26372636
let uid = Uids::<Test>::get(netuid, hotkey);
2638-
assert_eq!(uid.unwrap(), i);
2637+
assert_eq!(uid, Some(i));
26392638
}
26402639

26412640
// Non existent subnet

0 commit comments

Comments
 (0)