Skip to content

Commit

Permalink
fix lookup format
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Mar 30, 2024
1 parent 6d8c608 commit 59543f2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion halo2_proofs/src/plonk/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1583,13 +1583,22 @@ impl<F: Field> Gate<F> {
}

/// TODO doc
#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct LookupTracker<F: Field> {
pub(crate) name: String,
pub(crate) table: Vec<Expression<F>>,
pub(crate) inputs: Vec<Vec<Expression<F>>>,
}

impl<F: Field> fmt::Debug for LookupTracker<F> where F: fmt::Debug {

Check failure on line 1593 in halo2_proofs/src/plonk/circuit.rs

View workflow job for this annotation

GitHub Actions / Clippy (beta)

failed to resolve: use of undeclared crate or module `fmt`

error[E0433]: failed to resolve: use of undeclared crate or module `fmt` --> halo2_proofs/src/plonk/circuit.rs:1593:57 | 1593 | impl<F: Field> fmt::Debug for LookupTracker<F> where F: fmt::Debug { | ^^^ use of undeclared crate or module `fmt` | help: consider importing one of these items | 1 + use ark_std::fmt; | 1 + use core::fmt; | 1 + use std::fmt; |

Check failure on line 1593 in halo2_proofs/src/plonk/circuit.rs

View workflow job for this annotation

GitHub Actions / Clippy (beta)

failed to resolve: use of undeclared crate or module `fmt`

error[E0433]: failed to resolve: use of undeclared crate or module `fmt` --> halo2_proofs/src/plonk/circuit.rs:1593:16 | 1593 | impl<F: Field> fmt::Debug for LookupTracker<F> where F: fmt::Debug { | ^^^ use of undeclared crate or module `fmt` | help: consider importing one of these items | 1 + use ark_std::fmt; | 1 + use core::fmt; | 1 + use std::fmt; |
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {

Check failure on line 1594 in halo2_proofs/src/plonk/circuit.rs

View workflow job for this annotation

GitHub Actions / Clippy (beta)

failed to resolve: use of undeclared crate or module `fmt`

error[E0433]: failed to resolve: use of undeclared crate or module `fmt` --> halo2_proofs/src/plonk/circuit.rs:1594:50 | 1594 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ^^^ use of undeclared crate or module `fmt` | help: consider importing one of these items | 1 + use ark_std::fmt; | 1 + use core::fmt; | 1 + use std::fmt; |

Check failure on line 1594 in halo2_proofs/src/plonk/circuit.rs

View workflow job for this annotation

GitHub Actions / Clippy (beta)

failed to resolve: use of undeclared crate or module `fmt`

error[E0433]: failed to resolve: use of undeclared crate or module `fmt` --> halo2_proofs/src/plonk/circuit.rs:1594:27 | 1594 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | ^^^ use of undeclared crate or module `fmt` | help: consider importing one of these items | 1 + use ark_std::fmt; | 1 + use core::fmt; | 1 + use std::fmt; |
f.debug_struct("LookupTracker")
.field("table", &self.table)
.field("inputs", &self.inputs)
.finish()
}
}

/// This is a description of the circuit environment, such as the gate, column and
/// permutation arrangements.
#[derive(Debug, Clone)]
Expand Down

0 comments on commit 59543f2

Please sign in to comment.