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

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

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,
};