]> git.proxmox.com Git - proxmox-backup.git/commitdiff
BackupGroup: stop implementing Display
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 16 May 2022 09:23:28 +0000 (11:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 16 May 2022 16:49:19 +0000 (18:49 +0200)
this shouldn't be printed/logged - use DatastoreWithNamespace /
pbs_api_types::BackupGroup instead.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
pbs-datastore/src/backup_info.rs

index 68f8dad194c1f4ad45c23d3ee2ed1a3ffffc01b3..87892fad4f4ec3e7bcc1586fcc5b77b2482e2752 100644 (file)
@@ -257,17 +257,6 @@ impl From<BackupGroup> for pbs_api_types::BackupGroup {
     }
 }
 
-impl fmt::Display for BackupGroup {
-    #[inline]
-    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
-        if self.ns.is_root() {
-            fmt::Display::fmt(&self.group, f)
-        } else {
-            write!(f, "[{}]:{}", self.ns, self.group)
-        }
-    }
-}
-
 impl From<BackupDir> for BackupGroup {
     fn from(dir: BackupDir) -> BackupGroup {
         BackupGroup {