fix new lints from clippy 0.1.85

This commit is contained in:
Olivia Lee 2025-07-20 12:51:25 -07:00 committed by Charles Hall
parent e65815c82e
commit fb4d168921
6 changed files with 10 additions and 10 deletions

View file

@ -72,13 +72,13 @@ impl Service {
r.as_ref().map_or(true, |(_, pdu)| {
filter_event_type
.as_ref()
.map_or(true, |t| &&pdu.kind == t)
.is_none_or(|t| &&pdu.kind == t)
&& if let Ok(content) = serde_json::from_str::<
ExtractRelatesToEventId,
>(
pdu.content.get()
) {
filter_rel_type.as_ref().map_or(true, |r| {
filter_rel_type.as_ref().is_none_or(|r| {
&&content.relates_to.rel_type == r
})
} else {
@ -127,13 +127,13 @@ impl Service {
r.as_ref().map_or(true, |(_, pdu)| {
filter_event_type
.as_ref()
.map_or(true, |t| &&pdu.kind == t)
.is_none_or(|t| &&pdu.kind == t)
&& if let Ok(content) = serde_json::from_str::<
ExtractRelatesToEventId,
>(
pdu.content.get()
) {
filter_rel_type.as_ref().map_or(true, |r| {
filter_rel_type.as_ref().is_none_or(|r| {
&&content.relates_to.rel_type == r
})
} else {

View file

@ -148,7 +148,7 @@ impl Service {
)
.ok()
.map(|c| c.via)
.map_or(true, |v| v.is_empty())
.is_none_or(|v| v.is_empty())
{
continue;
}