diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-24 19:10:03 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-24 19:10:03 +0200 |
| commit | b4be25e43b1ee9da924d13b7f2e8289f12bd2c3b (patch) | |
| tree | a21fbec7e6907993463d57b8c75758d2014cebeb /src/func/mod.rs | |
| parent | ecf0ff4d054f11c79ec0ddbbdf45f3dfcf9fc8d7 (diff) | |
Prettify peeking and rearrange syntax/parsing modules 🧶
Diffstat (limited to 'src/func/mod.rs')
| -rw-r--r-- | src/func/mod.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/func/mod.rs b/src/func/mod.rs index 9a6fcbd1..b3918253 100644 --- a/src/func/mod.rs +++ b/src/func/mod.rs @@ -4,10 +4,7 @@ use std::any::Any; use std::collections::HashMap; use std::fmt::{self, Debug, Formatter}; -use crate::layout::{Layout, LayoutContext, Alignment, LayoutResult, MultiLayout}; -use crate::parsing::{ParseContext, ParseResult}; -use crate::style::TextStyle; -use crate::syntax::{FuncHeader, SyntaxTree}; +use self::prelude::*; #[macro_use] mod helpers; @@ -18,9 +15,10 @@ pub mod prelude { pub use crate::func::{Command, CommandList, Function}; pub use crate::layout::{layout_tree, Layout, LayoutContext, MultiLayout}; pub use crate::layout::{Flow, Alignment, LayoutError, LayoutResult}; - pub use crate::parsing::{parse, ParseContext, ParseError, ParseResult}; pub use crate::syntax::{Expression, FuncHeader, SyntaxTree}; + pub use crate::syntax::{parse, ParseContext, ParseError, ParseResult}; pub use crate::size::{Size, Size2D, SizeBox}; + pub use crate::style::{PageStyle, TextStyle}; pub use super::helpers::*; } |
