Skip to content

Commit 445fae0

Browse files
committed
chore: clippy
1 parent a7e2ad1 commit 445fae0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pallets/subtensor/src/tests/registration.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -526,10 +526,7 @@ fn test_burn_registration_doesnt_write_on_failure() {
526526
// Make sure the neuron is not registered.
527527
assert_eq!(SubtensorModule::get_subnetwork_n(netuid), 0);
528528
// Make sure the hotkey is not registered.
529-
assert_eq!(
530-
SubtensorModule::get_uid_for_net_and_hotkey(netuid, &hotkey_account_id).is_err(),
531-
true
532-
);
529+
assert!(SubtensorModule::get_uid_for_net_and_hotkey(netuid, &hotkey_account_id).is_err());
533530
});
534531
}
535532

0 commit comments

Comments
 (0)