fix: compilation warnings

This commit is contained in:
CPerezz
2024-08-12 14:28:31 +02:00
parent 64a561aad6
commit ca2d4d6397
2 changed files with 3 additions and 2 deletions

View File

@@ -1,8 +1,8 @@
use std::{collections::HashMap, f32::consts::E};
use std::collections::HashMap;
use ark_ff::PrimeField;
use ark_relations::r1cs::{
self, ConstraintSynthesizer, ConstraintSystemRef, LinearCombination, SynthesisError, Variable,
ConstraintSynthesizer, ConstraintSystemRef, LinearCombination, SynthesisError, Variable,
};
use color_eyre::Result;

View File

@@ -28,6 +28,7 @@ pub trait Circom {
fn get_ptr_raw_prime(&self) -> Result<u32>;
}
#[cfg(feature = "circom-2")]
pub trait Circom2 {
fn get_field_num_len32(&self) -> Result<u32>;
fn get_raw_prime(&self) -> Result<()>;