From 8fe689989a5b66d2218ef1eb66dc585c546cbce7 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 2 Jan 2019 19:00:45 -0500 Subject: [PATCH] clippy: don't clone a copy --- ofborg/src/tasks/evaluationfilter.rs | 2 +- ofborg/src/tasks/githubcommentfilter.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ofborg/src/tasks/evaluationfilter.rs b/ofborg/src/tasks/evaluationfilter.rs index abad95d..9faf349 100644 --- a/ofborg/src/tasks/evaluationfilter.rs +++ b/ofborg/src/tasks/evaluationfilter.rs @@ -89,7 +89,7 @@ impl worker::SimpleWorker for EvaluationFilterWorker { }; let pr_msg = Pr { - number: job.number.clone(), + number: job.number, head_sha: job.pull_request.head.sha.clone(), target_branch: Some(job.pull_request.base.git_ref.clone()), }; diff --git a/ofborg/src/tasks/githubcommentfilter.rs b/ofborg/src/tasks/githubcommentfilter.rs index 7561ec4..2a288c8 100644 --- a/ofborg/src/tasks/githubcommentfilter.rs +++ b/ofborg/src/tasks/githubcommentfilter.rs @@ -104,7 +104,7 @@ impl worker::SimpleWorker for GitHubCommentWorker { }; let pr_msg = Pr { - number: job.issue.number.clone(), + number: job.issue.number, head_sha: pr.head.sha.clone(), target_branch: Some(pr.base.commit_ref.clone()), };