Fix clippy warnings

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

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,