diff --git a/crates/cli/src/modules/mod.rs b/crates/cli/src/modules/mod.rs
index a9d5eb5c4..d5085fde2 100644
--- a/crates/cli/src/modules/mod.rs
+++ b/crates/cli/src/modules/mod.rs
@@ -238,7 +238,7 @@ pub async fn name_to_id(client: &Client, name: &str) -> String {
pub fn is_localhost(url: &str) -> bool {
url.split_once("://")
.map(|(_, url)| url.split_once('/').map_or(url, |(host, _)| host))
- .map_or(false, |host| {
+ .is_some_and(|host| {
let host = host.rsplit_once(':').map_or(host, |(host, _)| host);
host == "localhost" || host == "127.0.0.1" || host == "[::1]"
})
diff --git a/crates/common/src/auth/oauth/token.rs b/crates/common/src/auth/oauth/token.rs
index 410487ea4..f6abd5d6c 100644
--- a/crates/common/src/auth/oauth/token.rs
+++ b/crates/common/src/auth/oauth/token.rs
@@ -149,7 +149,7 @@ impl Server {
}
// Validate grant type
- if expected_grant_type.map_or(false, |g| g != grant_type) {
+ if expected_grant_type.is_some_and(|g| g != grant_type) {
return Err(trc::AuthEvent::Error
.into_err()
.details("Invalid grant type"));
diff --git a/crates/common/src/auth/sasl.rs b/crates/common/src/auth/sasl.rs
index 92ba84b65..2c0d8f1f1 100644
--- a/crates/common/src/auth/sasl.rs
+++ b/crates/common/src/auth/sasl.rs
@@ -73,7 +73,7 @@ fn extract_oauth_bearer(bytes: &[u8]) -> Option<&str> {
if is_separator || pos == eof {
if bytes
.get(start_pos..start_pos + 12)
- .map_or(false, |s| s.eq_ignore_ascii_case(b"auth=Bearer "))
+ .is_some_and(|s| s.eq_ignore_ascii_case(b"auth=Bearer "))
{
return bytes
.get(start_pos + 12..if is_separator { pos } else { bytes.len() })
diff --git a/crates/common/src/config/smtp/queue.rs b/crates/common/src/config/smtp/queue.rs
index 34257bf00..31e0e8450 100644
--- a/crates/common/src/config/smtp/queue.rs
+++ b/crates/common/src/config/smtp/queue.rs
@@ -516,11 +516,11 @@ fn parse_queue_quota_item(config: &mut Config, prefix: impl AsKey, id: &str) ->
keys,
size: config
.property::