clippy: don't clone a copy
This commit is contained in:
parent
2a908134ac
commit
8fe689989a
2 changed files with 2 additions and 2 deletions
|
@ -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()),
|
||||
};
|
||||
|
|
|
@ -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()),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue