diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-13 12:08:07 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-13 12:08:07 +0200 |
| commit | 463e4ebd8234da5e28700e9b22b6ef5f0dfef56f (patch) | |
| tree | 01f3961d6996de3ee8f9819c2792f6ee8c2a3c3d /src/parsing/mod.rs | |
| parent | 6f22e4f13c42f06b686a01fbdd28a0163e88ae77 (diff) | |
Refactor layout types 🚧
Diffstat (limited to 'src/parsing/mod.rs')
| -rw-r--r-- | src/parsing/mod.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/parsing/mod.rs b/src/parsing/mod.rs index 344f3577..7d2c3d21 100644 --- a/src/parsing/mod.rs +++ b/src/parsing/mod.rs @@ -432,8 +432,8 @@ error_type! { #[cfg(test)] mod tests { use super::*; - use crate::func::{Function, Scope}; - use crate::layout::{LayoutContext, LayoutResult, Layout}; + use crate::func::{Function, FuncCommands, Scope}; + use crate::layout::{LayoutContext, LayoutResult}; use Node::{Space as S, Newline as N, Func as F}; use funcs::*; @@ -456,7 +456,9 @@ mod tests { } } - fn layout(&self, _: LayoutContext) -> LayoutResult<Option<Layout>> { Ok(None) } + fn layout(&self, _: LayoutContext) -> LayoutResult<FuncCommands> { + Ok(FuncCommands::new()) + } } /// A testing function without a body. @@ -473,7 +475,9 @@ mod tests { } } - fn layout(&self, _: LayoutContext) -> LayoutResult<Option<Layout>> { Ok(None) } + fn layout(&self, _: LayoutContext) -> LayoutResult<FuncCommands> { + Ok(FuncCommands::new()) + } } } |
