unrelated changes with rustfmt
This commit is contained in:
parent
26e0612d5e
commit
b47704d6e4
|
@ -53,15 +53,14 @@ impl worker::SimpleWorker for GitHubCommentWorker {
|
||||||
return vec![worker::Action::Ack];
|
return vec![worker::Action::Ack];
|
||||||
}
|
}
|
||||||
|
|
||||||
let build_destinations: Vec<(Option<String>,Option<String>)>;
|
let build_destinations: Vec<(Option<String>, Option<String>)>;
|
||||||
|
|
||||||
if self.acl.can_build_unrestricted(
|
if self.acl.can_build_unrestricted(
|
||||||
&job.comment.user.login,
|
&job.comment.user.login,
|
||||||
&job.repository.full_name,
|
&job.repository.full_name,
|
||||||
) {
|
)
|
||||||
build_destinations = vec![
|
{
|
||||||
(Some("build-jobs".to_owned()), None)
|
build_destinations = vec![(Some("build-jobs".to_owned()), None)];
|
||||||
];
|
|
||||||
} else if self.acl.can_build_restricted(
|
} else if self.acl.can_build_restricted(
|
||||||
&job.comment.user.login,
|
&job.comment.user.login,
|
||||||
&job.repository.full_name,
|
&job.repository.full_name,
|
||||||
|
@ -140,11 +139,7 @@ impl worker::SimpleWorker for GitHubCommentWorker {
|
||||||
};
|
};
|
||||||
|
|
||||||
for (exch, rk) in build_destinations.clone() {
|
for (exch, rk) in build_destinations.clone() {
|
||||||
response.push(worker::publish_serde_action(
|
response.push(worker::publish_serde_action(exch, rk, &msg));
|
||||||
exch,
|
|
||||||
rk,
|
|
||||||
&msg,
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
commentparser::Instruction::Eval => {
|
commentparser::Instruction::Eval => {
|
||||||
|
|
Loading…
Reference in a new issue