Skip to content

Commit

Permalink
fix: implement hash for JwkSet
Browse files Browse the repository at this point in the history
This implements Hash for JwkSet, which allows it to be cached in a hashmap.
  • Loading branch information
aminya authored Jun 5, 2024
1 parent afbb44e commit 1e3d90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jwk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Jwk>,
}
Expand Down

0 comments on commit 1e3d90b

Please sign in to comment.