diff --git a/identity_jose/src/jws/algorithm.rs b/identity_jose/src/jws/algorithm.rs index 570c18e4c..d13387684 100644 --- a/identity_jose/src/jws/algorithm.rs +++ b/identity_jose/src/jws/algorithm.rs @@ -72,6 +72,10 @@ impl JwsAlgorithm { ]; /// Returns the JWS algorithm as a `str` slice. + /// + /// Not available when feature `custom_alg` is enabled + /// as it is not possible to enumerate all variants when + /// supporting arbitrary `alg` values. #[cfg(not(feature = "custom_alg"))] pub const fn name(self) -> &'static str { match self {