curve: mark ValidityCheck trait as allow(dead_code) (#625)

Recent nightlies have started emitting a dead code lint
This commit is contained in:
Tony Arcieri 2024-02-12 09:56:06 -07:00 committed by GitHub
parent 4ac84dd066
commit 50401ab430
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -409,6 +409,7 @@ pub trait VartimePrecomputedMultiscalarMul: Sized {
/// This trait is only for debugging/testing, since it should be
/// impossible for a `curve25519-dalek` user to construct an invalid
/// point.
#[allow(dead_code)]
pub(crate) trait ValidityCheck {
/// Checks whether the point is on the curve. Not CT.
fn is_valid(&self) -> bool;