Skip to content

Commit

Permalink
fix: include shuffle in Debug of PinnedConstraintSystem if it i…
Browse files Browse the repository at this point in the history
…s not empty
  • Loading branch information
han0110 committed Nov 8, 2023
1 parent de48d63 commit 4e501e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion halo2_proofs/src/plonk/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,11 @@ impl<'a, F: Field> std::fmt::Debug for PinnedConstraintSystem<'a, F> {
.field("instance_queries", self.instance_queries)
.field("fixed_queries", self.fixed_queries)
.field("permutation", self.permutation)
.field("lookups", self.lookups)
.field("lookups", self.lookups);
if !self.shuffles.is_empty() {
debug_struct.field("shuffles", self.shuffles);
}
debug_struct
.field("constants", self.constants)
.field("minimum_degree", self.minimum_degree);
debug_struct.finish()
Expand Down

0 comments on commit 4e501e8

Please sign in to comment.