signatures: Make Algorithm non-exhaustive
This commit is contained in:
parent
3f520bf907
commit
2538b23c26
@ -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"
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user