fix: Handle warning about unused kty & alg fields
These fields are only used to constrain deserialisation to the supported values, but have no further effect. `rustc` throws warnings about them not being used, which this commit disables.
This commit is contained in:
parent
5f8f252f68
commit
ae409995ca
1 changed files with 1 additions and 0 deletions
|
@ -82,6 +82,7 @@ enum KeyType { RSA }
|
|||
|
||||
/// Representation of a single JSON Web Key. See [RFC
|
||||
/// 7517](https://tools.ietf.org/html/rfc7517#section-4).
|
||||
#[allow(dead_code)] // kty & alg only constrain deserialisation, but aren't used
|
||||
#[derive(Deserialize)]
|
||||
pub struct JWK {
|
||||
kty: KeyType,
|
||||
|
|
Loading…
Reference in a new issue