Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
junyu0312 committed Nov 15, 2023
1 parent 5d68b4a commit 12dde50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
8 changes: 2 additions & 6 deletions crates/zkwasm/src/circuits/image_table/configure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@ impl<F: FieldExt> ImageTableConfig<F> {
fn expr(&self, meta: &mut VirtualCells<F>) -> Expression<F> {
cfg_if::cfg_if! {
if #[cfg(feature="uniform-circuit")] {
use crate::curr;

curr!(meta, self.col)
crate::curr!(meta, self.col)
} else {
use crate::fixed_curr;

fixed_curr!(meta, self.col)
crate::fixed_curr!(meta, self.col)
}
}
}
Expand Down
11 changes: 2 additions & 9 deletions crates/zkwasm/src/circuits/image_table/mod.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
use halo2_proofs::arithmetic::FieldExt;
cfg_if::cfg_if! {
if #[cfg(feature="uniform-circuit")] {
use halo2_proofs::plonk::Advice;
} else {
use halo2_proofs::plonk::Fixed;
}
}
use halo2_proofs::plonk::Column;
use num_bigint::BigUint;
use specs::brtable::BrTable;
Expand Down Expand Up @@ -207,14 +200,14 @@ impl<F: FieldExt> EncodeCompilationTableValues<F> for CompilationTable {
#[cfg(feature = "uniform-circuit")]
#[derive(Clone)]
pub struct ImageTableConfig<F: FieldExt> {
col: Column<Advice>,
col: Column<halo2_proofs::plonk::Advice>,
_mark: PhantomData<F>,
}

#[cfg(not(feature = "uniform-circuit"))]
#[derive(Clone)]
pub struct ImageTableConfig<F: FieldExt> {
col: Column<Fixed>,
col: Column<halo2_proofs::plonk::Fixed>,
_mark: PhantomData<F>,
}

Expand Down

0 comments on commit 12dde50

Please sign in to comment.