diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-08 10:54:04 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-08 11:02:27 +0100 |
| commit | e5eab73374880077971f3f22acbdd3d302877128 (patch) | |
| tree | 07aa926b27032d6bcd82486d664dfd4161ccbd3e /library/src/layout/enum.rs | |
| parent | 1b2b53ecb91a9bd7fb3493e471ae03cd142a7c03 (diff) | |
Streamline field names
Diffstat (limited to 'library/src/layout/enum.rs')
| -rw-r--r-- | library/src/layout/enum.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/src/layout/enum.rs b/library/src/layout/enum.rs index edc954d0..853a7a67 100644 --- a/library/src/layout/enum.rs +++ b/library/src/layout/enum.rs @@ -77,7 +77,7 @@ pub struct EnumNode { /// ) [+ #phase] /// ``` #[variadic] - pub items: Vec<EnumItem>, + pub children: Vec<EnumItem>, /// If this is `{false}`, the items are spaced apart with /// [enum spacing]($func/enum.spacing). If it is `{true}`, they use normal @@ -203,7 +203,7 @@ impl Layout for EnumNode { let mut parents = styles.get(Self::PARENTS); let full = styles.get(Self::FULL); - for item in self.items() { + for item in self.children() { number = item.number().unwrap_or(number); let resolved = if full { |
