Fixup for HashMap to BTreeMap conversion

This commit is contained in:
Jonas Platte 2020-04-19 23:14:50 +02:00
parent 0b362be311
commit 130c444a9f
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Breaking changes:
* Update ruma-identifiers to 0.15.1
* Change timestamps, including `origin_server_rs` from `UInt` to `SystemTime`
* Change all usages of `HashMap` to `BTreeMap`
* To support this, `EventType` now implements `PartialOrd` and `Ord`
# 0.18.0

View File

@ -6,7 +6,7 @@ use std::{
use serde::{Deserialize, Serialize};
/// The type of an event.
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Serialize, Deserialize)]
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
// Cow<str> because deserialization sometimes needs to copy to unescape things
#[serde(from = "Cow<'_, str>", into = "String")]
pub enum EventType {