Skip to content

Commit

Permalink
curve: mark ValidityCheck trait as allow(dead_code) (#625)
Browse files Browse the repository at this point in the history
Recent nightlies have started emitting a dead code lint
  • Loading branch information
tarcieri committed Feb 12, 2024
1 parent 4ac84dd commit 50401ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions curve25519-dalek/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 50401ab

Please sign in to comment.