diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-18 16:13:13 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2025-11-18 16:13:13 +0000 |
| commit | 18eae7e8827b0bd3bb85fb48197bb9c9536bc70c (patch) | |
| tree | 791a04c0ef725812a1579a79a38c5953ab464fcc /src | |
| parent | 3cf8621541b81ec654d5af9bde8297be1916c5fc (diff) | |
chore: fix clippy warning
use more idomatic function
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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( | |||
| 1566 | } | 1566 | } |
| 1567 | } | 1567 | } |
| 1568 | // Also check global cache for profile events to avoid re-fetching | 1568 | // Also check global cache for profile events to avoid re-fetching |
| 1569 | if filter.kinds.as_ref().map_or(false, |kinds| { | 1569 | if filter.kinds.as_ref().is_some_and(|kinds| { |
| 1570 | kinds.iter().any(|k| { | 1570 | kinds.iter().any(|k| { |
| 1571 | k.eq(&Kind::Metadata) || k.eq(&Kind::RelayList) || k.eq(&KIND_USER_GRASP_LIST) | 1571 | k.eq(&Kind::Metadata) || k.eq(&Kind::RelayList) || k.eq(&KIND_USER_GRASP_LIST) |
| 1572 | }) | 1572 | }) |