summaryrefslogtreecommitdiff
path: root/src/layout/text.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-08-30 22:18:55 +0200
committerLaurenz <laurmaedje@gmail.com>2020-08-30 22:18:55 +0200
commit181f756a9e8f7b664101058fe91e36b3858c2d02 (patch)
tree542e7c694e91d8cc91fa97a328e9bda0567db679 /src/layout/text.rs
parent0d44cf532136f3ba8e34d6f967f9e844cfb9c3f0 (diff)
Format everything with rustfmt! 💚
Diffstat (limited to 'src/layout/text.rs')
-rw-r--r--src/layout/text.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/text.rs b/src/layout/text.rs
index c1f1f1e7..a43437b1 100644
--- a/src/layout/text.rs
+++ b/src/layout/text.rs
@@ -7,11 +7,11 @@
use fontdock::{FaceId, FaceQuery, FontStyle};
use ttf_parser::GlyphId;
+use super::elements::{LayoutElement, Shaped};
+use super::*;
use crate::font::SharedFontLoader;
use crate::geom::Size;
use crate::style::TextStyle;
-use super::elements::{LayoutElement, Shaped};
-use super::*;
/// Layouts text into a box.
pub async fn layout_text(text: &str, ctx: TextContext<'_>) -> BoxLayout {