From 19f68065f1d5acf3997a4f6d2ccd74549f7cd1d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Mon, 16 Jan 2023 16:13:10 +0100 Subject: [PATCH] common: Derive PartialEq and Eq for the KeyUsage enum --- crates/ruma-common/src/encryption.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruma-common/src/encryption.rs b/crates/ruma-common/src/encryption.rs index 666b639c..eabbb62f 100644 --- a/crates/ruma-common/src/encryption.rs +++ b/crates/ruma-common/src/encryption.rs @@ -156,7 +156,7 @@ impl CrossSigningKey { /// The usage of a cross signing key. #[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/doc/string_enum.md"))] -#[derive(Clone, StringEnum)] +#[derive(Clone, PartialEq, Eq, StringEnum)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[ruma_enum(rename_all = "snake_case")] pub enum KeyUsage {