src/backup/datastore.rs: protect BackupGroup fields, impl new()

This commit is contained in:
Dietmar Maurer committed 2019-03-04 13:38:23 +01:00
1 parent cdebd467e6
commit 1e9a94e579
4 files changed
+30 -36

No files matched your search

+1 -4
View File
@@ -146,10 +146,7 @@ fn download_catar(
let datastore = DataStore::lookup_datastore(store)?;
let backup_dir = BackupDir {
group: BackupGroup {
backup_type: backup_type.to_string(),
backup_id: backup_id.to_string(),
},
group: BackupGroup::new(backup_type, backup_id),
backup_time,
};