Skip to content

Commit a4ccd6d

Browse files
committed
clippy
1 parent 7233ee6 commit a4ccd6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/subtensor/src/tests/weights.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5501,7 +5501,7 @@ fn test_reveal_crv3_commits_multiple_valid_commits_all_processed() {
55015501
let delta = I32F32::from_num(0.0001);
55025502

55035503
for (hotkey, expected_payload) in commits {
5504-
let neuron_uid = SubtensorModule::get_uid_for_net_and_hotkey(netuid, &hotkey)
5504+
let neuron_uid = SubtensorModule::get_uid_for_net_and_hotkey(netuid, hotkey)
55055505
.expect("Failed to get neuron UID for hotkey") as usize;
55065506
let weights = weights_sparse
55075507
.get(neuron_uid)
@@ -5687,7 +5687,7 @@ fn test_reveal_crv3_commits_max_neurons() {
56875687
let delta = I32F32::from_num(0.0001); // Adjust delta as needed
56885688

56895689
for (hotkey, expected_payload) in commits {
5690-
let neuron_uid = SubtensorModule::get_uid_for_net_and_hotkey(netuid, &hotkey)
5690+
let neuron_uid = SubtensorModule::get_uid_for_net_and_hotkey(netuid, hotkey)
56915691
.expect("Failed to get neuron UID for hotkey") as usize;
56925692
let weights = weights_sparse
56935693
.get(neuron_uid)

0 commit comments

Comments
 (0)