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:
Vincent Ambo 2018-09-04 12:21:11 +02:00
parent 5f8f252f68
commit ae409995ca

View file

@ -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,