From 5203cfcff92c98ee36edffa3b83ac140ec72f6e0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 20 Apr 2022 12:23:13 +0200 Subject: [PATCH] datastore: drop PartialEq and PartialOrd from BackupGroup Same as previous commits: this will be linked to a particular DataStore and Eq/Ord is now only part of the api types, for now. Signed-off-by: Wolfgang Bumiller --- pbs-datastore/src/backup_info.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pbs-datastore/src/backup_info.rs b/pbs-datastore/src/backup_info.rs index 57741ae1..7ebb54eb 100644 --- a/pbs-datastore/src/backup_info.rs +++ b/pbs-datastore/src/backup_info.rs @@ -8,17 +8,11 @@ use pbs_api_types::{BackupType, GroupFilter, BACKUP_DATE_REGEX, BACKUP_FILE_REGE use super::manifest::MANIFEST_BLOB_NAME; /// BackupGroup is a directory containing a list of BackupDir -#[derive(Debug, PartialEq, Hash, Clone)] +#[derive(Debug, Hash, Clone)] pub struct BackupGroup { group: pbs_api_types::BackupGroup, } -impl std::cmp::PartialOrd for BackupGroup { - fn partial_cmp(&self, other: &Self) -> Option { - Some(self.group.cmp(&other.group)) - } -} - impl BackupGroup { pub(crate) fn new>(backup_type: BackupType, backup_id: T) -> Self { Self {