BackupDir: stop implementing Display
the api type implements it already, all call sites should rather use DatastoreWithName and pbs_api_types::BackupDir for logging/.. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
5ae393af15
commit
eefa297aa0
|
@ -597,20 +597,6 @@ impl From<BackupDir> for pbs_api_types::BackupDir {
|
|||
}
|
||||
}
|
||||
|
||||
impl fmt::Display for BackupDir {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
if self.ns.is_root() {
|
||||
write!(f, "{}/{}", self.dir.group, self.backup_time_string)
|
||||
} else {
|
||||
write!(
|
||||
f,
|
||||
"[{}]:{}/{}",
|
||||
self.ns, self.dir.group, self.backup_time_string
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Detailed Backup Information, lists files inside a BackupDir
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct BackupInfo {
|
||||
|
|
Loading…
Reference in New Issue