From 5c04185892947969005ffcf6412d7190dafb3a79 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sun, 13 Oct 2019 13:09:03 +0200 Subject: =?UTF-8?q?Reformat=20some=20things=20=F0=9F=A7=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/actions.rs | 3 ++- src/layout/flex.rs | 4 ---- src/layout/mod.rs | 3 +-- src/layout/text.rs | 2 -- 4 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src/layout') diff --git a/src/layout/actions.rs b/src/layout/actions.rs index 3eb85e50..069c3f7c 100644 --- a/src/layout/actions.rs +++ b/src/layout/actions.rs @@ -1,7 +1,8 @@ -//! Drawing and cofiguration actions used by layouts. +//! Drawing and cofiguration actions composing layouts. use std::fmt::{self, Display, Formatter}; use std::io::{self, Write}; + use crate::size::Size2D; use super::Layout; use LayoutAction::*; diff --git a/src/layout/flex.rs b/src/layout/flex.rs index 68d39004..704281d3 100644 --- a/src/layout/flex.rs +++ b/src/layout/flex.rs @@ -1,10 +1,6 @@ -//! Flexible and lazy layouting of boxes. - -use crate::size::{Size, Size2D}; use super::*; - /// Finishes a flex layout by justifying the positions of the individual boxes. #[derive(Debug)] pub struct FlexLayouter { diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 1bd11e14..c8d10141 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -1,4 +1,4 @@ -//! The layouting engine. +//! The core layouting engine. use std::borrow::Cow; use std::io::{self, Write}; @@ -12,7 +12,6 @@ use crate::size::{Size, Size2D, SizeBox}; use crate::syntax::{SyntaxTree, Node, FuncCall}; use crate::style::TextStyle; - mod text; mod stacked; mod flex; diff --git a/src/layout/text.rs b/src/layout/text.rs index 6cbe3b8e..cf258029 100644 --- a/src/layout/text.rs +++ b/src/layout/text.rs @@ -1,5 +1,3 @@ -//! Layouting of text into boxes. - use toddle::query::{FontQuery, SharedFontLoader}; use toddle::tables::{Header, CharMap, HorizontalMetrics}; -- cgit v1.2.3