Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jocelyn Falempe
rust-gitlab
Commits
3feebb51
Commit
3feebb51
authored
Dec 12, 2016
by
Ben Boeckel
⛰
Browse files
rustfmt: apply suggestions
parent
e598ec88
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gitlab.rs
View file @
3feebb51
...
...
@@ -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
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment