Clippy fixes

This commit is contained in:
mdecimus
2025-08-18 11:44:58 +01:00
parent d6531be012
commit e10aa551eb
102 changed files with 1336 additions and 1411 deletions

View File

@@ -160,10 +160,9 @@ fn decode_plain_auth(token: &str) -> Option<Credentials<String>> {
}
fn decode_bearer_token(token: &str, allow_api_access: bool) -> Option<Credentials<String>> {
if allow_api_access {
if let Some(token) = token.strip_prefix("api_").and_then(decode_plain_auth) {
return Some(token);
}
if allow_api_access && let Some(token) = token.strip_prefix("api_").and_then(decode_plain_auth)
{
return Some(token);
}
Some(Credentials::OAuthBearer {