Skip to content

Commit

Permalink
feat: suppress unused warning
Browse files Browse the repository at this point in the history
  • Loading branch information
shuai132 committed Oct 9, 2024
1 parent cadeb55 commit c805a30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c805a30

Please sign in to comment.