diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-10 13:07:39 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-10 13:07:39 +0200 |
| commit | 36b3067c19c8743032a44f888ee48702b88d135b (patch) | |
| tree | 89893f4501109b35bb6498b93bda4f3cc82dba40 /src/layout | |
| parent | 9950627789358b4d46c7fd8ba20d1428aee7bf01 (diff) | |
Eco string 🌱
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/par.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/par.rs b/src/layout/par.rs index 5d21e05e..bd744201 100644 --- a/src/layout/par.rs +++ b/src/layout/par.rs @@ -6,6 +6,7 @@ use xi_unicode::LineBreakIterator; use super::*; use crate::exec::FontState; +use crate::eco::EcoString; use crate::util::{RangeExt, SliceExt}; type Range = std::ops::Range<usize>; @@ -29,7 +30,7 @@ pub enum ParChild { /// Spacing between other nodes. Spacing(Length), /// A run of text and how to align it in its line. - Text(String, Align, Rc<FontState>), + Text(EcoString, Align, Rc<FontState>), /// Any child node and how to align it in its line. Any(AnyNode, Align), } |
