Skip to content

Commit

Permalink
Update hugr-passes/src/const_fold.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Craig Roy <[email protected]>
  • Loading branch information
doug-q and croyzor authored Dec 10, 2024
1 parent bf347e4 commit 0d0b0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hugr-passes/src/const_fold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ impl<H: HugrView> DFContext<ValueHandle> for ConstFoldContext<'_, H> {
.filter_map(|((i, ty), pv)| {
pv.clone()
.try_into_concrete(ty)
.map_or(None, |v| Some((IncomingPort::from(i), v)))
.map(|v| (IncomingPort::from(i), v))
})
.collect::<Vec<_>>();
for (p, v) in op.constant_fold(&known_ins).unwrap_or_default() {
Expand Down

0 comments on commit 0d0b0d1

Please sign in to comment.