An update will be applied January 25th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 3feebb51 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

rustfmt: apply suggestions

parent e598ec88
......@@ -293,7 +293,7 @@ impl Gitlab {
/// Get the latest statuses of a commit.
pub fn commit_latest_statuses(&self, project: ProjectId, commit: &str)
-> GitlabResult<Vec<CommitStatus>> {
-> GitlabResult<Vec<CommitStatus>> {
self._get_paged(&format!("projects/{}/repository/commits/{}/statuses",
project,
commit))
......@@ -312,7 +312,8 @@ impl Gitlab {
}
/// Get the latest builds of a commit.
pub fn commit_latest_builds(&self, project: ProjectId, commit: &str) -> GitlabResult<Vec<Build>> {
pub fn commit_latest_builds(&self, project: ProjectId, commit: &str)
-> GitlabResult<Vec<Build>> {
self._get_paged(&format!("projects/{}/repository/commits/{}/builds", project, commit))
}
......@@ -377,7 +378,8 @@ impl Gitlab {
}
/// Get the merge requests with a given state.
pub fn merge_requests_with_state(&self, project: ProjectId, state: MergeRequestStateFilter) -> GitlabResult<Vec<MergeRequest>> {
pub fn merge_requests_with_state(&self, project: ProjectId, state: MergeRequestStateFilter)
-> GitlabResult<Vec<MergeRequest>> {
let mut req = try!(self._mkrequest(&format!("projects/{}/merge_requests", project)));
req.param("state", state.as_str());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment