From bfea476be2837e1d979311214ede881ab9eb99bc Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 29 Oct 2020 11:27:35 +0100 Subject: [PATCH] schedule_datastore_sync_jobs: remove unneccessary clone() --- src/bin/proxmox-backup-proxy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/proxmox-backup-proxy.rs b/src/bin/proxmox-backup-proxy.rs index f2612e1f..eedcb593 100644 --- a/src/bin/proxmox-backup-proxy.rs +++ b/src/bin/proxmox-backup-proxy.rs @@ -579,9 +579,9 @@ async fn schedule_datastore_sync_jobs() { Err(_) => continue, // could not get lock }; - let userid = Userid::backup_userid().clone(); + let userid = Userid::backup_userid(); - if let Err(err) = do_sync_job(job, job_config, &userid, Some(event_str)) { + if let Err(err) = do_sync_job(job, job_config, userid, Some(event_str)) { eprintln!("unable to start datastore sync job {} - {}", &job_id, err); } }