diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-11-04 09:30:44 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-11-04 11:38:09 +0100 |
| commit | eb951c008beea502042db4a3a0e8d1f8b51f6f52 (patch) | |
| tree | 9856ee4ed0222222669de10e616a580b2a60135e /library/src/structure | |
| parent | 33928a00dc58250e24da1dae4e5db17e7b598d70 (diff) | |
Style changes
Diffstat (limited to 'library/src/structure')
| -rw-r--r-- | library/src/structure/list.rs | 12 | ||||
| -rw-r--r-- | library/src/structure/mod.rs | 10 |
2 files changed, 9 insertions, 13 deletions
diff --git a/library/src/structure/list.rs b/library/src/structure/list.rs index d461ef2d..a5e1380a 100644 --- a/library/src/structure/list.rs +++ b/library/src/structure/list.rs @@ -95,9 +95,9 @@ impl<const L: ListKind> Show for ListNode<L> { match name { "tight" => Some(Value::Bool(self.tight)), "attached" => Some(Value::Bool(self.attached)), - "items" => Some(Value::Array( - self.items.items().map(|item| item.encode()).collect(), - )), + "items" => { + Some(Value::Array(self.items.items().map(|item| item.encode()).collect())) + } _ => None, } } @@ -139,11 +139,7 @@ impl<const L: ListKind> Show for ListNode<L> { ListItem::List(body) => body.as_ref().clone(), ListItem::Enum(_, body) => body.as_ref().clone(), ListItem::Desc(item) => Content::sequence(vec