From bebeb5f2220552b3500466da2d22a8d9b6a7dfa0 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Fri, 19 Nov 2021 20:06:45 +0100 Subject: [PATCH] Fix #220 --- src/decoding.rs | 4 ++-- src/encoding.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decoding.rs b/src/decoding.rs index 0f77931..1856877 100644 --- a/src/decoding.rs +++ b/src/decoding.rs @@ -29,7 +29,7 @@ macro_rules! expect_two { }}; } -#[derive(Debug, Clone, PartialEq)] +#[derive(Clone)] pub(crate) enum DecodingKeyKind { SecretOrDer(Vec), RsaModulusExponent { n: Vec, e: Vec }, @@ -37,7 +37,7 @@ pub(crate) enum DecodingKeyKind { /// All the different kind of keys we can use to decode a JWT /// This key can be re-used so make sure you only initialize it once if you can for better performance -#[derive(Debug, Clone, PartialEq)] +#[derive(Clone)] pub struct DecodingKey { pub(crate) family: AlgorithmFamily, pub(crate) kind: DecodingKeyKind, diff --git a/src/encoding.rs b/src/encoding.rs index 05df8f1..b0f8315 100644 --- a/src/encoding.rs +++ b/src/encoding.rs @@ -9,7 +9,7 @@ use crate::serialization::b64_encode_part; /// A key to encode a JWT with. Can be a secret, a PEM-encoded key or a DER-encoded key. /// This key can be re-used so make sure you only initialize it once if you can for better performance -#[derive(Debug, Clone, PartialEq)] +#[derive(Clone)] pub struct EncodingKey { pub(crate) family: AlgorithmFamily, content: Vec,