summaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/actions.rs3
-rw-r--r--src/layout/flex.rs4
-rw-r--r--src/layout/mod.rs3
-rw-r--r--src/layout/text.rs2
4 files changed, 3 insertions, 9 deletions
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};