Derive Eq for types where it makes sense
This commit is contained in:
parent
1db07a2022
commit
2257b4daf9
@ -64,7 +64,7 @@ impl RoomOrAliasId {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(PartialEq)]
|
#[derive(PartialEq, Eq)]
|
||||||
enum Variant {
|
enum Variant {
|
||||||
RoomId,
|
RoomId,
|
||||||
RoomAliasId,
|
RoomAliasId,
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user