You've already forked AstralRinth
forked from didirus/AstralRinth
chore(clippy): enable and fix many stricter lints (#3783)
* chore(clippy): enable and fix many stricter lints These ensure that the codebase uses more idiomatic, performant, and concise language constructions. * chore: make non-Clippy compiler warnings also deny by default
This commit is contained in:
committed by
GitHub
parent
301967d204
commit
f84f8c1c2b
@@ -1249,7 +1249,7 @@ pub async fn delete_auth_provider(
|
||||
.await?
|
||||
.1;
|
||||
|
||||
if !user.auth_providers.map(|x| x.len() > 1).unwrap_or(false)
|
||||
if user.auth_providers.is_none_or(|x| x.len() <= 1)
|
||||
&& !user.has_password.unwrap_or(false)
|
||||
{
|
||||
return Err(ApiError::InvalidInput(
|
||||
|
||||
Reference in New Issue
Block a user