Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Rothenberger committed Sep 11, 2024
1 parent 70c39dc commit eb35981
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions identity_jose/src/jws/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit eb35981

Please sign in to comment.