diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-09-27 13:40:56 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-09-27 13:45:18 +0200 |
| commit | e10b3d838a75ea351f8477e07f2e1e647f4539dc (patch) | |
| tree | 286183d4b7492ecf95b7a8b0a9c245bb85191db5 /src/layout/par.rs | |
| parent | ff37a2893dc7f0a29faa7cc57ccb4d746f483bed (diff) | |
Fix panic due to bad alignments in stack function
Diffstat (limited to 'src/layout/par.rs')
| -rw-r--r-- | src/layout/par.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/par.rs b/src/layout/par.rs index 847612b9..beb7a1d6 100644 --- a/src/layout/par.rs +++ b/src/layout/par.rs @@ -96,9 +96,9 @@ impl From<ParNode> for LayoutNode { impl Debug for ParChild { fn fmt(&self, f: &mut Formatter) -> fmt::Result { match self { - ParChild::Spacing(v) => write!(f, "Spacing({:?})", v), - ParChild::Text(text, ..) => write!(f, "Text({:?})", text), - ParChild::Any(node, ..) => f.debug_tuple("Any").field(node).finish(), + Self::Spacing(v) => write!(f, "Spacing({:?})", v), + Self::Text(text, ..) => write!(f, "Text({:?})", text), + Self::Any(node, ..) => node.fmt(f), } } } |
