mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 16:21:24 +01:00
fix new lints from clippy 0.1.85
This commit is contained in:
parent
e65815c82e
commit
fb4d168921
6 changed files with 10 additions and 10 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue