unrelated changes with rustfmt

This commit is contained in:
Graham Christensen 2018-01-31 09:29:57 -05:00
parent 26e0612d5e
commit b47704d6e4
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -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 => {