Optimize various case-insensitive comparisons.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2026-02-12 09:01:46 +00:00
parent 814cbc2f37
commit 994e1d12a7
5 changed files with 9 additions and 9 deletions

View File

@@ -133,8 +133,8 @@ pub(crate) async fn get_state_events_for_key_route(
let event_format = body
.format
.as_ref()
.is_some_and(|f| f.to_lowercase().eq("event"));
.as_deref()
.is_some_and(|f| f.eq_ignore_ascii_case("event"));
Ok(get_state_event_for_key::v3::Response {
content: event_format.or(|| event.get_content_as_value()),