Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
gluebuddy
Commits
fd923d22
Verified
Commit
fd923d22
authored
Jan 19, 2022
by
Levente Polyak
🚀
Browse files
chore: fix collapsible-if clippy warnings
parent
1b95f12b
Pipeline
#15029
passed with stage
in 26 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/components/gitlab/gitlab.rs
View file @
fd923d22
...
@@ -256,13 +256,12 @@ impl GitLabGlue {
...
@@ -256,13 +256,12 @@ impl GitLabGlue {
.collect
::
<
Vec
<
_
>>
();
.collect
::
<
Vec
<
_
>>
();
for
staff
in
state
.staff
()
{
for
staff
in
state
.staff
()
{
if
!
gitlab_group_member_names
.contains
(
&
staff
.username
)
{
if
!
gitlab_group_member_names
.contains
(
&
staff
.username
)
if
self
&&
self
.add_group_member
(
action
,
&
staff
,
group
,
DEFAULT_ARCH_LINUX_GROUP_ACCESS_LEVEL
)
.add_group_member
(
action
,
&
staff
,
group
,
DEFAULT_ARCH_LINUX_GROUP_ACCESS_LEVEL
)
.await
?
.await
?
{
{
summary
.add
+=
1
;
summary
.add
+=
1
;
}
}
}
}
}
...
@@ -315,13 +314,12 @@ impl GitLabGlue {
...
@@ -315,13 +314,12 @@ impl GitLabGlue {
.collect
::
<
Vec
<
_
>>
();
.collect
::
<
Vec
<
_
>>
();
for
staff
in
state
.staff
()
{
for
staff
in
state
.staff
()
{
if
!
gitlab_group_member_names
.contains
(
&
staff
.username
)
{
if
!
gitlab_group_member_names
.contains
(
&
staff
.username
)
if
self
&&
self
.add_group_member
(
action
,
&
staff
,
group
,
DEFAULT_STAFF_GROUP_ACCESS_LEVEL
)
.add_group_member
(
action
,
&
staff
,
group
,
DEFAULT_STAFF_GROUP_ACCESS_LEVEL
)
.await
?
.await
?
{
{
summary
.add
+=
1
;
summary
.add
+=
1
;
}
}
}
}
}
...
@@ -373,8 +371,8 @@ impl GitLabGlue {
...
@@ -373,8 +371,8 @@ impl GitLabGlue {
let
state
=
self
.state
.lock
()
.await
;
let
state
=
self
.state
.lock
()
.await
;
for
staff
in
state
.devops
()
{
for
staff
in
state
.devops
()
{
if
!
group_member_names
.contains
(
&
staff
.username
)
{
if
!
group_member_names
.contains
(
&
staff
.username
)
if
self
&&
self
.add_group_member
(
.add_group_member
(
action
,
action
,
&
staff
,
&
staff
,
...
@@ -382,9 +380,8 @@ impl GitLabGlue {
...
@@ -382,9 +380,8 @@ impl GitLabGlue {
DEVOPS_INFRASTRUCTURE_ACCESS_LEVEL
,
DEVOPS_INFRASTRUCTURE_ACCESS_LEVEL
,
)
)
.await
?
.await
?
{
{
summary
.add
+=
1
;
summary
.add
+=
1
;
}
}
}
}
}
...
...
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