chore: address Rust 1.83.0 clippy lints and enable more clippy lints (#6705)

This commit is contained in:
Sanchith Hegde
2024-12-02 20:00:44 +05:30
committed by GitHub
parent 797a0db773
commit 9a59d0a5ff
139 changed files with 147 additions and 417 deletions

View File

@ -216,12 +216,12 @@ pub async fn connect_account(
.await;
logger::info!(?send_email_result);
return Ok(ApplicationResponse::Json(
Ok(ApplicationResponse::Json(
user_api::ConnectAccountResponse {
is_email_sent: send_email_result.is_ok(),
user_id: user_from_db.get_user_id().to_string(),
},
));
))
} else if find_user
.as_ref()
.map_err(|e| e.current_context().is_db_not_found())