diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-01-21 16:07:28 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-01-21 16:07:28 +0100 |
commit | 087ff5c8bd0b7364101580e9be3069ef40ce91b1 (patch) | |
tree | 1f34322ab0a2ebc599f49e6067528431f14d3e8e /src/orchestrator | |
parent | e8a4c12a49b5f41778668ba1f5e71de629b6bc20 (diff) |
Fix clippy: Do not clone() copy type
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/orchestrator')
-rw-r--r-- | src/orchestrator/orchestrator.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/orchestrator/orchestrator.rs b/src/orchestrator/orchestrator.rs index 135e10c..e637f36 100644 --- a/src/orchestrator/orchestrator.rs +++ b/src/orchestrator/orchestrator.rs @@ -131,8 +131,7 @@ impl<'a> Orchestrator<'a> { .map(|(uuid, jobdef)| { trace!("Running job {}", uuid); let bar = multibar.add(self.progress_generator.bar()); - let uuid = uuid.clone(); - self.run_job(jobdef, bar).map(move |r| (uuid, r)) + self.run_job(jobdef, bar).map(move |r| (*uuid, r)) }) .collect::<futures::stream::FuturesUnordered<_>>() .collect::<Vec<(_, Result<JobResult>)>>(); @@ -181,7 +180,7 @@ impl<'a> Orchestrator<'a> { .await?; bar.set_message("Scheduling..."); - let job_uuid = jobdef.job.uuid().clone(); + let job_uuid = *jobdef.job.uuid(); match self.scheduler.schedule_job(runnable, bar).await?.run().await { Err(e) => return Ok(Err((job_uuid, e))), Ok(db_artifacts) => { |