Fix clippy warnings

Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
This commit is contained in:
Dimitris Apostolou committed 2025-01-24 19:32:24 +02:00
1 parent 2cbae68a7f
commit 2c8f6298b8
4 files changed
+13 -17

No files matched your search

+2 -2
View File
@@ -118,10 +118,10 @@ impl AccountRelayData {
if let Some(url) = tag.get(1).and_then(|f| f.variant().str()) {
let has_read_marker = tag
.get(2)
.map_or(false, |m| m.variant().str() == Some("read"));
.is_some_and(|m| m.variant().str() == Some("read"));
let has_write_marker = tag
.get(2)
.map_or(false, |m| m.variant().str() == Some("write"));
.is_some_and(|m| m.variant().str() == Some("write"));
relays.push(RelaySpec::new(
Self::canonicalize_url(url),
has_read_marker,