mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
Fix clippy errors on tests (#2160)
## Issue Addressed
There are some clippy error on tests.
## Proposed Changes
Enable clippy check on tests and fix the errors. 💪
This commit is contained in:
@@ -62,7 +62,7 @@ fn random_test(seed: u64, test_config: TestConfig) {
|
||||
.choose_multiple(&mut rng, num_attesters)
|
||||
.copied()
|
||||
.collect::<Vec<u64>>();
|
||||
attesting_indices.sort();
|
||||
attesting_indices.sort_unstable();
|
||||
|
||||
// If checking slashings, generate valid attestations in range.
|
||||
let (source, target) = if check_slashings {
|
||||
|
||||
Reference in New Issue
Block a user