diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-10 20:01:18 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-10 23:10:17 +0200 |
| commit | 6a4823461f491aef63451f097ddfe5602e0b2157 (patch) | |
| tree | ad11b0ad169d030942d950573c729d50f7b3291b /src/layout/par.rs | |
| parent | 36b3067c19c8743032a44f888ee48702b88d135b (diff) | |
Reference-count complex values
Rename some nodes types
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 bd744201..72b3edfb 100644 --- a/src/layout/par.rs +++ b/src/layout/par.rs @@ -5,8 +5,8 @@ use unicode_bidi::{BidiInfo, Level}; use xi_unicode::LineBreakIterator; use super::*; -use crate::exec::FontState; use crate::eco::EcoString; +use crate::exec::FontState; use crate::util::{RangeExt, SliceExt}; type Range = std::ops::Range<usize>; @@ -32,7 +32,7 @@ pub enum ParChild { /// A run of text and how to align it in its line. Text(EcoString, Align, Rc<FontState>), /// Any child node and how to align it in its line. - Any(AnyNode, Align), + Any(LayoutNode, Align), } impl Layout for ParNode { @@ -89,7 +89,7 @@ impl ParNode { } } -impl From<ParNode> for AnyNode { +impl From<ParNode> for LayoutNode { fn from(par: ParNode) -> Self { Self::new(par) } |
