Skip to content

Commit

Permalink
Improve the (debugging-only) print output of Node::ByteSet
Browse files Browse the repository at this point in the history
  • Loading branch information
ridiculousfish committed Nov 4, 2023
1 parent 4fddeb8 commit b6787d0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,11 +446,8 @@ fn display_node(node: &Node, depth: usize, f: &mut fmt::Formatter) -> fmt::Resul
Node::ByteSet(bytes) => {
let len = bytes.len();
write!(f, "ByteSet{}", len)?;
if len > 0 {
write!(f, "0x")?;
for &b in bytes {
write!(f, "{:x}", b)?;
}
for &b in bytes {
write!(f, " 0x{:x}", b)?;
}
writeln!(f)?;
}
Expand Down

0 comments on commit b6787d0

Please sign in to comment.