Fixup for HashMap to BTreeMap conversion
This commit is contained in:
parent
0b362be311
commit
130c444a9f
@ -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
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user