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

This commit is contained in:
Dietmar Maurer
2019-03-04 13:51:36 +01:00
parent 1e9a94e579
commit 9b492eb256
4 changed files with 34 additions and 34 deletions

View File

@ -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();