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,