Skip to content

Commit

Permalink
refactor(starky): cc-debug - is_zeros-api use (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
reshmem authored and sai-deng committed Jul 18, 2024
1 parent d49fdf6 commit 92a68ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starky/src/constraint_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl<P: PackedField> ConstraintConsumer<P> {
#[allow(clippy::collapsible_if)]
pub fn constraint(&mut self, constraint: P) {
if std::intrinsics::unlikely(self.debug_api) {
if !constraint.as_slice().iter().all(|e| e.eq(&P::Scalar::ZERO)) {
if !constraint.is_zeros() {
println!(
"ConstraintConsumer - DEBUG trace (non-zero-constraint): {:?}",
Backtrace::new()
Expand Down

0 comments on commit 92a68ee

Please sign in to comment.