Skip to content

Commit cc76060

Browse files
committed
clippy
1 parent 4877062 commit cc76060

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pallets/subtensor/src/tests/batch_tx.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ fn test_batch_commit_weights() {
290290
assert_ok!(SubtensorModule::batch_commit_weights(
291291
RuntimeOrigin::signed(hotkey),
292292
netuids_vec.clone(),
293-
vec![hash.clone(), hash.clone(), hash.clone()], // One per network
293+
vec![hash, hash, hash], // One per network
294294
));
295295

296296
// Check the events are emitted, three errors about commit reveal disabled
@@ -340,7 +340,7 @@ fn test_batch_commit_weights() {
340340
assert_ok!(SubtensorModule::batch_commit_weights(
341341
RuntimeOrigin::signed(hotkey),
342342
netuids_vec.clone(),
343-
vec![hash.clone(), hash.clone(), hash.clone()]
343+
vec![hash, hash, hash]
344344
));
345345

346346
assert!(SubtensorModule::check_weights_min_stake(&hotkey, netuid_0));
@@ -370,7 +370,7 @@ fn test_batch_commit_weights() {
370370
assert_ok!(SubtensorModule::batch_commit_weights(
371371
RuntimeOrigin::signed(hotkey),
372372
netuids_vec.clone(),
373-
vec![hash.clone(), hash.clone(), hash.clone()]
373+
vec![hash, hash, hash]
374374
));
375375

376376
// Check the events are emitted, one error

0 commit comments

Comments
 (0)