Allow uppercase algorithms (too much breakage otherwise)

This commit is contained in:
Vincent Prouillet 2021-04-12 22:47:49 +02:00
parent b6dafd63dd
commit 3e245e3e6b
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ pub(crate) enum AlgorithmFamily {
}
/// The algorithms supported for signing/verifying JWTs
#[allow(clippy::upper_case_acronyms)]
#[derive(Debug, PartialEq, Hash, Copy, Clone, Serialize, Deserialize)]
pub enum Algorithm {
/// HMAC using SHA-256