mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
enable match_bool lint
This commit is contained in:
parent
224ba65d06
commit
4e6c8451ca
2 changed files with 6 additions and 4 deletions
|
|
@ -47,6 +47,7 @@ lossy_float_literal = "warn"
|
|||
manual_let_else = "warn"
|
||||
manual_string_new = "warn"
|
||||
map_unwrap_or = "warn"
|
||||
match_bool = "warn"
|
||||
mem_forget = "warn"
|
||||
missing_assert_message = "warn"
|
||||
mod_module_files = "warn"
|
||||
|
|
|
|||
|
|
@ -764,13 +764,14 @@ 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
|
||||
} else {
|
||||
true
|
||||
}
|
||||
false => true,
|
||||
},
|
||||
}
|
||||
Err(_) => false,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue