Address latest nightly clippy lints, but globally disable stable_sort_primitive
This commit is contained in:
@ -203,6 +203,7 @@ impl BroadcastStage {
|
||||
/// which will then close FetchStage in the Tpu, and then the rest of the Tpu,
|
||||
/// completing the cycle.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[allow(clippy::same_item_push)]
|
||||
fn new(
|
||||
socks: Vec<UdpSocket>,
|
||||
cluster_info: Arc<ClusterInfo>,
|
||||
|
@ -3345,6 +3345,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::same_item_push)]
|
||||
fn test_push_epoch_slots_large() {
|
||||
use rand::Rng;
|
||||
let node_keypair = Arc::new(Keypair::new());
|
||||
|
@ -451,6 +451,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::same_item_push)]
|
||||
fn test_epoch_slots_fill_uncompressed_random_range() {
|
||||
use rand::Rng;
|
||||
for _ in 0..10 {
|
||||
@ -469,6 +470,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::same_item_push)]
|
||||
fn test_epoch_slots_fill_compressed_random_range() {
|
||||
use rand::Rng;
|
||||
for _ in 0..10 {
|
||||
@ -489,6 +491,7 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[allow(clippy::same_item_push)]
|
||||
fn test_epoch_slots_fill_random_range() {
|
||||
use rand::Rng;
|
||||
for _ in 0..10 {
|
||||
|
Reference in New Issue
Block a user