From 18eae7e8827b0bd3bb85fb48197bb9c9536bc70c Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 18 Nov 2025 16:13:13 +0000 Subject: chore: fix clippy warning use more idomatic function --- src/lib/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/client.rs b/src/lib/client.rs index 60c22fc..4643392 100644 --- a/src/lib/client.rs +++ b/src/lib/client.rs @@ -1566,7 +1566,7 @@ async fn create_relays_request( } } // Also check global cache for profile events to avoid re-fetching - if filter.kinds.as_ref().map_or(false, |kinds| { + if filter.kinds.as_ref().is_some_and(|kinds| { kinds.iter().any(|k| { k.eq(&Kind::Metadata) || k.eq(&Kind::RelayList) || k.eq(&KIND_USER_GRASP_LIST) }) -- cgit v1.2.3