Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VC
rust-gitlab
Commits
d33628b8
Commit
d33628b8
authored
Feb 16, 2017
by
Ben Boeckel
Browse files
clippy: apply suggestions
parent
6962c579
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/webhooks.rs
View file @
d33628b8
...
...
@@ -289,7 +289,7 @@ impl MergeRequestParams {
pub
fn
force_remove_source_branch
(
&
self
)
->
bool
{
self
.force_remove_source_branch
.as_ref
()
.map
(
|
val
|
{
.map
_or
(
false
,
|
val
|
{
if
let
Some
(
as_str
)
=
val
.as_str
()
{
as_str
==
"1"
}
else
if
let
Some
(
as_bool
)
=
val
.as_bool
()
{
...
...
@@ -300,7 +300,6 @@ impl MergeRequestParams {
false
}
})
.unwrap_or
(
false
)
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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