common: Derive PartialEq and Eq for the KeyUsage enum
This commit is contained in:
parent
48288865db
commit
19f68065f1
@ -156,7 +156,7 @@ impl CrossSigningKey {
|
|||||||
|
|
||||||
/// The usage of a cross signing key.
|
/// The usage of a cross signing key.
|
||||||
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/doc/string_enum.md"))]
|
#[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)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
#[ruma_enum(rename_all = "snake_case")]
|
#[ruma_enum(rename_all = "snake_case")]
|
||||||
pub enum KeyUsage {
|
pub enum KeyUsage {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user