mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
resolve clippy match_bool
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
1 parent
9d0b647911
commit
0bb5115bd1
4 files changed
+26
-21
No files matched your search
@@ -1025,12 +1025,13 @@ impl Service {
|
||||
|
||||
if !force {
|
||||
user_ids.retain(|&user_id| match services().users.is_admin(user_id) {
|
||||
Ok(is_admin) => match is_admin {
|
||||
true => {
|
||||
Ok(is_admin) => {
|
||||
if is_admin {
|
||||
admins.push(user_id.localpart());
|
||||
false
|
||||
},
|
||||
false => true,
|
||||
} else {
|
||||
true
|
||||
}
|
||||
},
|
||||
Err(_) => false,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user