From c805a30740299230e9ea38a4718879205cf2256d Mon Sep 17 00:00:00 2001 From: liushuai <770722922@qq.com> Date: Wed, 9 Oct 2024 18:32:49 +0800 Subject: [PATCH] feat: suppress unused warning --- src/key.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/key.rs b/src/key.rs index 9deae78..ff2107d 100644 --- a/src/key.rs +++ b/src/key.rs @@ -508,6 +508,8 @@ fn check_public_with_max_size(public_key: &impl PublicKeyParts, max_size: usize) if public_key.n().bits() > max_size { return Err(Error::ModulusTooLarge); } + #[cfg(feature = "uncheck_modulus_size")] + let _unused = max_size; let e = public_key .e()