src/backup/datastore.rs: protect BackupDir fields, impl new()
This commit is contained in:
1 parent
1e9a94e579
commit
9b492eb256
4 files changed
+34
-34
No files matched your search
@@ -145,10 +145,7 @@ fn download_catar(
|
||||
|
||||
let datastore = DataStore::lookup_datastore(store)?;
|
||||
|
||||
let backup_dir = BackupDir {
|
||||
group: BackupGroup::new(backup_type, backup_id),
|
||||
backup_time,
|
||||
};
|
||||
let backup_dir = BackupDir::new(BackupGroup::new(backup_type, backup_id), backup_time);
|
||||
|
||||
let mut path = backup_dir.relative_path();
|
||||
|
||||
|
||||
Reference in new issue
Block a user