signatures: Make Algorithm non-exhaustive

This commit is contained in:
Jonas Platte 2021-05-26 13:39:32 +02:00
parent 3f520bf907
commit 2538b23c26
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ all-features = true
[features] [features]
compat = ["tracing"] compat = ["tracing"]
unstable-exhaustive-types = []
[dependencies] [dependencies]
base64 = "0.13.0" base64 = "0.13.0"

View File

@ -64,6 +64,7 @@ mod verification;
/// The algorithm used for signing data. /// The algorithm used for signing data.
#[derive(Clone, Debug, Eq, Hash, PartialEq, AsRefStr, DisplayAsRefStr)] #[derive(Clone, Debug, Eq, Hash, PartialEq, AsRefStr, DisplayAsRefStr)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
#[ruma_enum(rename_all = "snake_case")] #[ruma_enum(rename_all = "snake_case")]
pub enum Algorithm { pub enum Algorithm {
/// The Ed25519 digital signature algorithm. /// The Ed25519 digital signature algorithm.