Address latest nightly clippy lints, but globally disable stable_sort_primitive
This commit is contained in:
@ -1966,6 +1966,7 @@ impl Bank {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::needless_collect)]
|
||||
fn distribute_rent_to_validators(
|
||||
&self,
|
||||
vote_account_hashmap: &HashMap<Pubkey, (u64, Account)>,
|
||||
|
@ -92,7 +92,7 @@ impl SnapshotVersion {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Ord, Eq, Debug)]
|
||||
#[derive(PartialEq, Eq, Debug)]
|
||||
pub struct SlotSnapshotPaths {
|
||||
pub slot: Slot,
|
||||
pub snapshot_file_path: PathBuf,
|
||||
@ -126,6 +126,12 @@ impl PartialOrd for SlotSnapshotPaths {
|
||||
}
|
||||
}
|
||||
|
||||
impl Ord for SlotSnapshotPaths {
|
||||
fn cmp(&self, other: &Self) -> Ordering {
|
||||
self.slot.cmp(&other.slot)
|
||||
}
|
||||
}
|
||||
|
||||
impl SlotSnapshotPaths {
|
||||
fn copy_snapshot_directory<P: AsRef<Path>>(&self, snapshot_hardlink_dir: P) -> Result<()> {
|
||||
// Create a new directory in snapshot_hardlink_dir
|
||||
|
Reference in New Issue
Block a user