style: Fix clippy lint

This commit is contained in:
timedout
2026-03-27 22:54:52 +00:00
parent d636da06e2
commit b0e3b9eeb5
+1 -1
View File
@@ -76,7 +76,7 @@ pub const EDU_LIMIT: usize = 100;
fn is_create_event(data: &CanonicalJsonObject) -> bool {
let event_type = data.get("type").and_then(|v| v.as_str());
let state_key = data.get("state_key").and_then(|v| v.as_str());
event_type.is_some_and(|t| t == "m.room.create") && state_key.is_some_and(|s| s.is_empty())
event_type.is_some_and(|t| t == "m.room.create") && state_key.is_some_and(str::is_empty)
}
impl Service {