Skip to content

Commit f95fb5b

Browse files
committed
clippy
1 parent 498d30a commit f95fb5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pallets/subtensor/tests/weights.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4090,7 +4090,8 @@ fn test_commit_weights_rate_limit() {
40904090
SubtensorModule::set_validator_permit_for_uid(netuid, 1, true);
40914091
SubtensorModule::set_commit_reveal_weights_enabled(netuid, true);
40924092

4093-
let neuron_uid = SubtensorModule::get_uid_for_net_and_hotkey(netuid, &hotkey).unwrap();
4093+
let neuron_uid =
4094+
SubtensorModule::get_uid_for_net_and_hotkey(netuid, &hotkey).expect("expected uid");
40944095
SubtensorModule::set_last_update_for_uid(netuid, neuron_uid, 0);
40954096

40964097
assert_ok!(SubtensorModule::commit_weights(

0 commit comments

Comments
 (0)