diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-09-30 12:38:02 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-09-30 12:45:33 +0200 |
| commit | bc1b4216a802d09e8d00dd277a0e204d49bcaa7f (patch) | |
| tree | 31dabd48d5062fdd684797ed6053bf279ba67490 /src/layout | |
| parent | fee5170a68a6ef97108d731a4873787894f65a06 (diff) | |
Reorganize syntax types into two modules 📦
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/mod.rs | 2 | ||||
| -rw-r--r-- | src/layout/tree.rs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 853a66ec..c053cda0 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -25,7 +25,7 @@ use crate::compute::scope::Scope; use crate::font::SharedFontLoader; use crate::geom::{Margins, Size}; use crate::style::{LayoutStyle, PageStyle, TextStyle}; -use crate::syntax::tree::SyntaxTree; +use crate::syntax::SyntaxTree; use elements::LayoutElements; use prelude::*; diff --git a/src/layout/tree.rs b/src/layout/tree.rs index fe12cc33..b6f9ab47 100644 --- a/src/layout/tree.rs +++ b/src/layout/tree.rs @@ -4,9 +4,9 @@ use super::line::{LineContext, LineLayouter}; use super::text::{layout_text, TextContext}; use super::*; use crate::style::LayoutStyle; -use crate::syntax::decoration::Decoration; -use crate::syntax::span::{Span, Spanned}; -use crate::syntax::tree::{CallExpr, Code, Heading, SyntaxNode, SyntaxTree}; +use crate::syntax::{ + CallExpr, Code, Decoration, Heading, Span, Spanned, SyntaxNode, SyntaxTree, +}; use crate::{DynFuture, Feedback, Pass}; /// Layout a syntax tree into a collection of boxes. |
