From 67be453177c36623a8d1190c27b6071aaa369018 Mon Sep 17 00:00:00 2001 From: peinlcy Date: Fri, 2 Feb 2024 16:08:04 +0800 Subject: [PATCH] fix logs --- circuits/src/stark/ola_stark.rs | 2 +- core/src/merkle_tree/storage.rs | 2 +- plonky2/plonky2/src/gadgets/lookup.rs | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/circuits/src/stark/ola_stark.rs b/circuits/src/stark/ola_stark.rs index 8228a3be..f216a0d3 100644 --- a/circuits/src/stark/ola_stark.rs +++ b/circuits/src/stark/ola_stark.rs @@ -664,7 +664,6 @@ mod tests { use core::types::merkle_tree::{encode_addr, tree_key_default}; use core::types::{Field, GoldilocksField}; use core::vm::transaction::init_tx_context_mock; - use std::process::exit; use executor::load_tx::init_tape; use executor::trace::{gen_storage_hash_table, gen_storage_table}; use executor::{BatchCacheManager, Process}; @@ -677,6 +676,7 @@ mod tests { use std::io::{BufRead, BufReader}; use std::mem; use std::path::PathBuf; + use std::process::exit; use std::sync::{Arc, Mutex}; use std::time::{Duration, Instant}; diff --git a/core/src/merkle_tree/storage.rs b/core/src/merkle_tree/storage.rs index 67be7976..7fcde682 100644 --- a/core/src/merkle_tree/storage.rs +++ b/core/src/merkle_tree/storage.rs @@ -7,7 +7,7 @@ use crate::types::merkle_tree::{ use crate::utils::{deserialize_block_number, serialize_block_number, serialize_tree_leaf}; use byteorder::{BigEndian, ByteOrder, ReadBytesExt}; use itertools::Itertools; -use log::info; +use log::{debug, info}; use plonky2::field::goldilocks_field::GoldilocksField; use plonky2::field::types::Field; use rocksdb::WriteBatch; diff --git a/plonky2/plonky2/src/gadgets/lookup.rs b/plonky2/plonky2/src/gadgets/lookup.rs index a1cd49ac..327a6d88 100644 --- a/plonky2/plonky2/src/gadgets/lookup.rs +++ b/plonky2/plonky2/src/gadgets/lookup.rs @@ -1,8 +1,6 @@ use crate::field::extension::Extendable; use crate::gates::lookup::BitwiseLookupGate; -use crate::gates::lookup_table::{ - BitwiseLookupTable, BitwiseLookupTableGate, -}; +use crate::gates::lookup_table::{BitwiseLookupTable, BitwiseLookupTableGate}; use crate::gates::noop::NoopGate; use crate::hash::hash_types::RichField; use crate::iop::target::Target;