]> git.proxmox.com Git - proxmox-backup.git/commitdiff
cleanup: remove unnecessary StoreProgress clone()
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Dec 2020 05:29:11 +0000 (06:29 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 1 Dec 2020 05:29:11 +0000 (06:29 +0100)
src/backup/datastore.rs
src/client/pull.rs

index 8c212ab1fc6fce3d7944023a5a3f1aacb1e44b72..9d0520040e8e75bcb03509fcac9437bf1385ec3d 100644 (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
index 2555a14c93ebdbbec3854538678d29bfd867cfc2..5403d87353d21c32cac08cf727bbbf84f502a2fe 100644 (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
     }