From 22b333a0d9a7f181338c3276d2b901266e115c47 Mon Sep 17 00:00:00 2001 From: poljar Date: Thu, 29 Apr 2021 15:33:45 +0200 Subject: [PATCH] Use as_str() to get the string event type. Co-authored-by: Jonas Platte --- matrix_sdk_base/src/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix_sdk_base/src/client.rs b/matrix_sdk_base/src/client.rs index 10175109..732909e7 100644 --- a/matrix_sdk_base/src/client.rs +++ b/matrix_sdk_base/src/client.rs @@ -1350,7 +1350,7 @@ impl BaseClient { pub async fn get_push_rules(&self, changes: &StateChanges) -> Result { if let Some(AnyBasicEvent::PushRules(event)) = changes .account_data - .get(&EventType::PushRules.to_string()) + .get(EventType::PushRules.as_str()) .and_then(|e| e.deserialize().ok()) { Ok(event.content.global)