From bc1b4216a802d09e8d00dd277a0e204d49bcaa7f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 30 Sep 2020 12:38:02 +0200 Subject: =?UTF-8?q?Reorganize=20syntax=20types=20into=20two=20modules=20?= =?UTF-8?q?=F0=9F=93=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/mod.rs | 2 +- src/layout/tree.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/layout') 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. -- cgit v1.2.3