diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-07 14:30:50 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-07 14:43:13 +0100 |
| commit | 0a41844cc4e645e87fe48aa31ed3a4fd40a6ab11 (patch) | |
| tree | c7cac97079491c8a11afae1211d7a80415fe64ef /library/src/structure/list.rs | |
| parent | efd1853d069fbd1476e82d015da4d0d04cfaccc0 (diff) | |
Selectors
Diffstat (limited to 'library/src/structure/list.rs')
| -rw-r--r-- | library/src/structure/list.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/structure/list.rs b/library/src/structure/list.rs index 499207a4..89dc0f35 100644 --- a/library/src/structure/list.rs +++ b/library/src/structure/list.rs @@ -94,9 +94,9 @@ impl<const L: ListKind> ListNode<L> { } impl<const L: ListKind> Show for ListNode<L> { - fn unguard_parts(&self, sel: Selector) -> Content { + fn unguard_parts(&self, id: RecipeId) -> Content { Self { - items: self.items.map(|item| item.unguard(sel)), + items: self.items.map(|item| item.unguard(id)), ..*self } .pack() @@ -208,7 +208,7 @@ impl ListItem { } } - fn unguard(&self, sel: Selector) -> Self { + fn unguard(&self, sel: RecipeId) -> Self { match self { Self::List(body) => Self::List(Box::new(body.unguard(sel))), Self::Enum(number, body) => Self::Enum(*number, Box::new(body.unguard(sel))), |
