Skip to content

Commit 4d5e43f

Browse files
authored
fix: implement hash for JwkSet (#392)
This implements Hash for JwkSet, which allows it to be cached in a hashmap.
1 parent c3ca386 commit 4d5e43f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jwk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ impl Jwk {
424424
}
425425

426426
/// A JWK set
427-
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
427+
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Hash)]
428428
pub struct JwkSet {
429429
pub keys: Vec<Jwk>,
430430
}

0 commit comments

Comments
 (0)