From 1e3d90bcce82072763594d5ffcb5457709c466d0 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 5 Jun 2024 05:57:37 -0700 Subject: [PATCH] fix: implement hash for JwkSet This implements Hash for JwkSet, which allows it to be cached in a hashmap. --- src/jwk.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jwk.rs b/src/jwk.rs index 49c58003..263fbffd 100644 --- a/src/jwk.rs +++ b/src/jwk.rs @@ -419,7 +419,7 @@ impl Jwk { } /// A JWK set -#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Hash)] pub struct JwkSet { pub keys: Vec, }