Derive Eq for types where it makes sense

This commit is contained in:
Jonas Platte 2022-05-23 18:40:34 +02:00
parent 1db07a2022
commit 2257b4daf9
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ impl RoomOrAliasId {
} }
} }
#[derive(PartialEq)] #[derive(PartialEq, Eq)]
enum Variant { enum Variant {
RoomId, RoomId,
RoomAliasId, RoomAliasId,

View File

@ -49,7 +49,7 @@ impl Verifier for Ed25519Verifier {
/// calculated during verification. This is not necessarily an error condition, as it may indicate /// calculated during verification. This is not necessarily an error condition, as it may indicate
/// that the event has been redacted. In this case, receiving homeservers should store a redacted /// that the event has been redacted. In this case, receiving homeservers should store a redacted
/// version of the event. /// version of the event.
#[derive(Clone, Debug, Hash, PartialEq)] #[derive(Clone, Debug, Hash, PartialEq, Eq)]
#[allow(clippy::exhaustive_enums)] #[allow(clippy::exhaustive_enums)]
pub enum Verified { pub enum Verified {
/// All signatures are valid and the content hashes match. /// All signatures are valid and the content hashes match.