From eb951c008beea502042db4a3a0e8d1f8b51f6f52 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 4 Nov 2022 09:30:44 +0100 Subject: Style changes --- library/src/structure/list.rs | 12 ++++-------- library/src/structure/mod.rs | 10 +++++----- 2 files changed, 9 insertions(+), 13 deletions(-) (limited to 'library/src/structure') 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 Show for ListNode { 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 Show for ListNode { ListItem::List(body) => body.as_ref().clone(), ListItem::Enum(_, body) => body.as_ref().clone(), ListItem::Desc(item) => Content::sequence(vec![ - HNode { - amount: (-body_indent).into(), - weak: false, - } - .pack(), + HNode { amount: (-body_indent).into(), weak: false }.pack(), (item.term.clone() + TextNode(':'.into()).pack()).strong(), SpaceNode.pack(), item.body.clone(), diff --git a/library/src/structure/mod.rs b/library/src/structure/mod.rs index 088d1e6c..8e13f76a 100644 --- a/library/src/structure/mod.rs +++ b/library/src/structure/mod.rs @@ -6,8 +6,8 @@ mod list; mod reference; mod table; -pub use doc::*; -pub use heading::*; -pub use list::*; -pub use reference::*; -pub use table::*; +pub use self::doc::*; +pub use self::heading::*; +pub use self::list::*; +pub use self::reference::*; +pub use self::table::*; -- cgit v1.2.3