cleanup: remove unnecessary StoreProgress clone()

This commit is contained in:
Dietmar Maurer 2020-12-01 06:29:11 +01:00
parent 7e25b9aaaa
commit 6eff8dec4f
2 changed files with 2 additions and 2 deletions

View File

@ -760,7 +760,7 @@ impl DataStore {
}
}
#[derive(Debug, Clone, Default)]
#[derive(Debug, Default)]
/// Tracker for progress of operations iterating over `Datastore` contents.
pub struct StoreProgress {
/// Completed groups

View File

@ -462,7 +462,7 @@ pub async fn pull_group(
let result = pull_snapshot_from(worker, reader, tgt_store.clone(), &snapshot, downloaded_chunks.clone()).await;
progress.done_snapshots = pos as u64 + 1;
worker.log(format!("percentage done: {}", progress.clone()));
worker.log(format!("percentage done: {}", progress));
result?; // stop on error
}