AEAD: Silenceclippy::large_enum_variant.

This commit is contained in:
Brian Smith 2020-11-11 12:38:00 -08:00
parent deb6bd9fb9
commit 26ed1b7adc
2 changed files with 2 additions and 2 deletions

View File

@ -398,7 +398,7 @@ impl core::fmt::Debug for UnboundKey {
}
}
#[allow(variant_size_differences)]
#[allow(clippy::large_enum_variant, variant_size_differences)]
enum KeyInner {
AesGcm(aes_gcm::Key),
ChaCha20Poly1305(chacha20_poly1305::Key),

View File

@ -28,7 +28,7 @@ pub struct HeaderProtectionKey {
algorithm: &'static Algorithm,
}
#[allow(variant_size_differences)]
#[allow(clippy::large_enum_variant, variant_size_differences)]
enum KeyInner {
Aes(aes::Key),
ChaCha20(chacha::Key),