clippy: don't clone a copy

This commit is contained in:
Graham Christensen 2019-01-02 19:00:45 -05:00
parent 2a908134ac
commit 8fe689989a
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
2 changed files with 2 additions and 2 deletions

View file

@ -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()),
};

View file

@ -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()),
};