From 50401ab430cde24f6dc02a4cbb93b2e533baab00 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Mon, 12 Feb 2024 09:56:06 -0700 Subject: [PATCH] curve: mark `ValidityCheck` trait as `allow(dead_code)` (#625) Recent nightlies have started emitting a dead code lint --- curve25519-dalek/src/traits.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/curve25519-dalek/src/traits.rs b/curve25519-dalek/src/traits.rs index a12592b..870dd32 100644 --- a/curve25519-dalek/src/traits.rs +++ b/curve25519-dalek/src/traits.rs @@ -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;