Skip to content

Commit 5aae193

Browse files
committed
Minor
1 parent 1bdffb8 commit 5aae193

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

circuit/src/builder/compiler/expression_lowerer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ where
190190
}
191191

192192
// Pass C: collect witness hints and emit `Unconstrained` operatios
193-
for (expr_idx, _) in self
193+
for expr_idx in self
194194
.graph
195195
.nodes()
196196
.iter()
197197
.enumerate()
198-
.filter(|(_, expr)| matches!(expr, Expr::Witness))
198+
.filter_map(|(expr_idx, expr)| matches!(expr, Expr::Witness).then(|| expr_idx))
199199
{
200200
let expr_id = ExprId(expr_idx as u32);
201201
let out_widx = alloc_witness_id_for_expr(expr_idx);

0 commit comments

Comments
 (0)