fix lint issue

This commit is contained in:
Mengran Lan
2024-08-26 14:48:13 +08:00
parent 647c099717
commit 0ef8fc4021
2 changed files with 3 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ mod darwin;
mod darwin_v2;
use anyhow::{bail, Result};
use darwin::DarwinVerifier;
// use darwin::DarwinVerifier;
use darwin_v2::DarwinV2Verifier;
use serde::{Deserialize, Serialize};
use std::{cell::OnceCell, rc::Rc};
@@ -36,7 +36,7 @@ type HardForkName = String;
struct VerifierPair(HardForkName, Rc<Box<dyn ProofVerifier>>);
static mut VERIFIER_HIGH: OnceCell<VerifierPair> = OnceCell::new();
static mut VERIFIER_LOW: OnceCell<VerifierPair> = OnceCell::new();
// static mut VERIFIER_LOW: OnceCell<VerifierPair> = OnceCell::new();
pub fn init(config: VerifierConfig) {
// let low_conf = config.low_version_circuit;

View File

@@ -14,7 +14,7 @@ pub struct DarwinVerifier {
}
impl DarwinVerifier {
pub fn new(params_dir: &str, assets_dir: &str) -> Self {
#[allow(dead_code)] pub fn new(params_dir: &str, assets_dir: &str) -> Self {
env::set_var("SCROLL_PROVER_ASSETS_DIR", assets_dir);
let verifier = Verifier::from_dirs(params_dir, assets_dir);