summaryrefslogtreecommitdiffstats
path: root/src/orchestrator
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-21 16:07:28 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-21 16:07:28 +0100
commit087ff5c8bd0b7364101580e9be3069ef40ce91b1 (patch)
tree1f34322ab0a2ebc599f49e6067528431f14d3e8e /src/orchestrator
parente8a4c12a49b5f41778668ba1f5e71de629b6bc20 (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.rs5
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) => {