chore: address Rust 1.84.0 clippy lints (#7021)

This commit is contained in:
Chethan Rao
2025-01-15 18:19:41 +05:30
committed by GitHub
parent bd1f077057
commit 4664d4bc4b
36 changed files with 159 additions and 213 deletions

View File

@ -281,7 +281,7 @@ pub fn parse_string_to_enums(query: String) -> UserResult<GetMultipleMetaDataPay
fn not_contains_string(value: &Option<String>, value_to_be_checked: &str) -> bool {
value
.as_ref()
.map_or(false, |mail| !mail.contains(value_to_be_checked))
.is_some_and(|mail| !mail.contains(value_to_be_checked))
}
pub fn is_prod_email_required(data: &ProdIntent, user_email: String) -> bool {