From 848156213b57effbafef201000ffdad109abfd0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Thu, 10 Sep 2020 15:51:39 +0200 Subject: [PATCH] crypto: Add a PartialEq derive for the exported key struct. --- matrix_sdk_crypto/src/olm/group_sessions/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix_sdk_crypto/src/olm/group_sessions/mod.rs b/matrix_sdk_crypto/src/olm/group_sessions/mod.rs index a8b2137e..b0e69599 100644 --- a/matrix_sdk_crypto/src/olm/group_sessions/mod.rs +++ b/matrix_sdk_crypto/src/olm/group_sessions/mod.rs @@ -34,14 +34,14 @@ pub struct GroupSessionKey(pub String); /// The exported version of an private session key of a group session. /// Can be used to create a new inbound group session. -#[derive(Clone, Debug, Serialize, Deserialize, Zeroize)] +#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Zeroize)] #[zeroize(drop)] pub struct ExportedGroupSessionKey(pub String); /// An exported version of a `InboundGroupSession` /// /// This can be used to share the `InboundGroupSession` in an exported file. -#[derive(Clone, Debug, Deserialize, Serialize)] +#[derive(Clone, Debug, Deserialize, Serialize, PartialEq)] pub struct ExportedRoomKey { /// The encryption algorithm that the session uses. pub algorithm: EventEncryptionAlgorithm,