mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-08 22:28:01 -05:00
chore(backward): move allow(dead_code) to dispatch variants
This allows to detect unused dispatch enums
This commit is contained in:
committed by
Nicolas Sarlin
parent
fc642c6f26
commit
ef684649f9
@@ -60,14 +60,14 @@ impl Display for IncompleteProof {
|
||||
impl Error for IncompleteProof {}
|
||||
|
||||
#[derive(VersionsDispatch)]
|
||||
#[allow(dead_code)]
|
||||
pub(crate) enum GroupElementsVersions<G: Curve> {
|
||||
#[allow(dead_code)]
|
||||
V0(GroupElements<G>),
|
||||
}
|
||||
|
||||
#[derive(VersionsDispatch)]
|
||||
#[allow(dead_code)]
|
||||
pub(crate) enum SerializableGroupElementsVersions {
|
||||
#[allow(dead_code)]
|
||||
V0(SerializableGroupElements),
|
||||
}
|
||||
|
||||
|
||||
@@ -49,8 +49,8 @@ pub enum ProofVersions<G: Curve> {
|
||||
}
|
||||
|
||||
#[derive(VersionsDispatch)]
|
||||
#[allow(dead_code)]
|
||||
pub(crate) enum ComputeLoadProofFieldVersions<G: Curve> {
|
||||
#[allow(dead_code)]
|
||||
V0(ComputeLoadProofFields<G>),
|
||||
}
|
||||
|
||||
@@ -107,11 +107,11 @@ where
|
||||
}
|
||||
|
||||
#[derive(VersionsDispatch)]
|
||||
#[allow(dead_code)]
|
||||
pub(crate) enum CompressedComputeLoadProofFieldsVersions<G: Curve>
|
||||
where
|
||||
G::G1: Compressible,
|
||||
G::G2: Compressible,
|
||||
{
|
||||
#[allow(dead_code)]
|
||||
V0(CompressedComputeLoadProofFields<G>),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user