Skip to content

Commit

Permalink
feat: prettier plookups
Browse files Browse the repository at this point in the history
  • Loading branch information
delehef committed Oct 28, 2023
1 parent 94ed91e commit 2d67828
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ fn check_plookup(cs: &ConstraintSet, parents: &[Node], children: &[Node]) -> Res
if parent_cols.get(0).map(|c| c.len()).unwrap_or(0) == 0
|| child_cols.get(0).map(|c| c.len()).unwrap_or(0) == 0
{
debug!("empty plookup; skipping");
warn!("empty lookup; skipping");
return Ok(());
}

Expand All @@ -441,13 +441,13 @@ fn check_plookup(cs: &ConstraintSet, parents: &[Node], children: &[Node]) -> Res
i,
children
.iter()
.zip(child_cols.iter().map(|c| c[i]))
.map(|(k, v)| format!("{}: {}", k, v.pretty()))
.zip(child_cols.iter().map(|c| c[i].pretty()))
.map(|(handle, value)| format!("{}: {}", handle.pretty(), value))
.collect::<Vec<_>>()
.join("\n"),
parents
.iter()
.map(|k| format!("{}", k))
.map(|handle| format!("{}", handle.pretty()))
.collect::<Vec<_>>()
.join(", ")
);
Expand Down

0 comments on commit 2d67828

Please sign in to comment.