From c3fe7576c163f13819f03a51e007a05f9c247a41 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Wed, 22 May 2024 09:33:38 -0500 Subject: [PATCH] base64: marke base64 helpers as #[allow(unused)] --- src/types/crypto/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/types/crypto/mod.rs b/src/types/crypto/mod.rs index 5b04ee0d5..dbc6afacc 100644 --- a/src/types/crypto/mod.rs +++ b/src/types/crypto/mod.rs @@ -40,13 +40,16 @@ const fn base64_encoded_length(len: usize) -> usize { macro_rules! impl_base64_helper { ($base:ident, $display:ident, $fromstr:ident, $test_module:ident, $array_length:literal) => { + #[allow(unused)] struct $base; impl $base { const LENGTH: usize = $array_length; + #[allow(unused)] const ENCODED_LENGTH: usize = base64_encoded_length(Self::LENGTH); } + #[allow(unused)] struct $display<'a>(&'a [u8; $base::LENGTH]); impl<'a> std::fmt::Display for $display<'a> { @@ -58,6 +61,7 @@ macro_rules! impl_base64_helper { } } + #[allow(unused)] #[derive(Debug, PartialEq)] #[cfg_attr(test, derive(proptest_derive::Arbitrary))] struct $fromstr([u8; $base::LENGTH]);