From eb35981e144820980899dcbb946f6a8bf6e1b8ca Mon Sep 17 00:00:00 2001 From: Frederik Rothenberger Date: Wed, 11 Sep 2024 16:24:53 +0200 Subject: [PATCH] Add comment --- identity_jose/src/jws/algorithm.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 {