diff options
| author | Martin <mhaug@live.de> | 2021-12-26 17:34:04 +0100 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2021-12-27 12:33:53 +0100 |
| commit | 7efdcdf2472257102c6b4b30bf285e2058924070 (patch) | |
| tree | 9749c485b4ef25d1d68fcd248917f891b9ec9677 /src/library/flow.rs | |
| parent | b22ce6f8b84e0a75d162feb6f3699e26f86f2453 (diff) | |
Apply simple suggestions from code review
Co-Authored-By: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'src/library/flow.rs')
| -rw-r--r-- | src/library/flow.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/flow.rs b/src/library/flow.rs index ca730db1..6bfa3ddd 100644 --- a/src/library/flow.rs +++ b/src/library/flow.rs @@ -32,12 +32,12 @@ impl Debug for FlowNode { pub enum FlowChild { /// A paragraph/block break. Break(Styles), - /// Skip the rest of the region and move to the next. - Skip, /// Vertical spacing between other children. Spacing(SpacingNode), /// An arbitrary node. Node(PackedNode), + /// Skip the rest of the region and move to the next. + Skip, } impl FlowChild { @@ -73,7 +73,7 @@ impl Debug for FlowChild { } Self::Spacing(node) => node.fmt(f), Self::Node(node) => node.fmt(f), - Self::Skip => write!(f, "Skip"), + Self::Skip => f.pad("Skip"), } } } |
