diff options
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/mod.rs | 2 | ||||
| -rw-r--r-- | src/layout/spacing.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 30295841..1974b578 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -24,7 +24,7 @@ pub use stack::*; pub use text::*; /// Layout a tree into a collection of frames. -pub fn layout(tree: &Tree, env: &mut Env) -> Vec<Frame> { +pub fn layout(env: &mut Env, tree: &Tree) -> Vec<Frame> { tree.layout(&mut LayoutContext { env }) } diff --git a/src/layout/spacing.rs b/src/layout/spacing.rs index 1d6c7f9c..4b564a2b 100644 --- a/src/layout/spacing.rs +++ b/src/layout/spacing.rs @@ -1,7 +1,7 @@ use std::fmt::{self, Debug, Formatter}; use super::*; -use crate::eval::Softness; +use crate::exec::Softness; /// A spacing node. #[derive(Copy, Clone, PartialEq)] |
