summaryrefslogtreecommitdiffstats
path: root/src/orchestrator/orchestrator.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-13 09:17:17 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-15 23:21:39 +0100
commitc61c417664c1840441fa605f0b9ff90a1b1ca6e9 (patch)
treeb79af3a2a17f9e9af221edfe84beebc3ad361b9d /src/orchestrator/orchestrator.rs
parent96fdb10e8b8bb09761eb9363db72fcf6927e73ce (diff)
Fix clippy: using `clone` on a `Copy` type
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/orchestrator/orchestrator.rs')
-rw-r--r--src/orchestrator/orchestrator.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/orchestrator/orchestrator.rs b/src/orchestrator/orchestrator.rs
index 258ae6d..719471f 100644
--- a/src/orchestrator/orchestrator.rs
+++ b/src/orchestrator/orchestrator.rs
@@ -114,7 +114,7 @@ impl<'a> Orchestrator<'a> {
let bar = multibar.add(progress_generator.bar());
async {
- let uuid = runnable.uuid().clone();
+ let uuid = *runnable.uuid();
Self::run_runnable(runnable, scheduler, bar)
.await
.map_err(|e| (uuid, e))
@@ -156,7 +156,7 @@ impl<'a> Orchestrator<'a> {
}
async fn run_runnable(runnable: RunnableJob, scheduler: &EndpointScheduler, bar: indicatif::ProgressBar) -> Result<Vec<Artifact>> {
- let job_id = runnable.uuid().clone();
+ let job_id = *runnable.uuid();
trace!("Runnable {} for package {}", job_id, runnable.package().name());
let jobhandle = scheduler.schedule_job(runnable, bar).await?;