Address latest nightly clippy lints, but globally disable stable_sort_primitive
This commit is contained in:
@@ -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