BackupGroup: stop implementing Display
this shouldn't be printed/logged - use DatastoreWithNamespace / pbs_api_types::BackupGroup instead. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
3697161800
commit
7784698948
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue