Use as_str() to get the string event type.
Co-authored-by: Jonas Platte <jplatte@users.noreply.github.com>
This commit is contained in:
parent
c720abfa87
commit
22b333a0d9
1 changed files with 1 additions and 1 deletions
|
@ -1350,7 +1350,7 @@ impl BaseClient {
|
|||
pub async fn get_push_rules(&self, changes: &StateChanges) -> Result<Ruleset> {
|
||||
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)
|
||||
|
|
Loading…
Reference in a new issue