Verified Commit fd923d22 authored by Levente Polyak's avatar Levente Polyak 🚀
Browse files

chore: fix collapsible-if clippy warnings

parent 1b95f12b
Pipeline #15029 passed with stage
in 26 seconds
...@@ -256,15 +256,14 @@ impl GitLabGlue { ...@@ -256,15 +256,14 @@ 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;
} }
} }
}
for member in &archlinux_group_members { for member in &archlinux_group_members {
if is_archlinux_bot(&member) { if is_archlinux_bot(&member) {
...@@ -315,15 +314,14 @@ impl GitLabGlue { ...@@ -315,15 +314,14 @@ 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;
} }
} }
}
for member in &archlinux_group_members { for member in &archlinux_group_members {
if is_archlinux_bot(&member) { if is_archlinux_bot(&member) {
...@@ -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,
...@@ -386,7 +384,6 @@ impl GitLabGlue { ...@@ -386,7 +384,6 @@ impl GitLabGlue {
summary.add += 1; summary.add += 1;
} }
} }
}
for member in &group_members { for member in &group_members {
if is_archlinux_bot(&member) { if is_archlinux_bot(&member) {
......
Supports Markdown
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