From 06ca740d01b428f12f6bd327257cd05dce737b03 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 9 Feb 2021 19:46:57 +0100 Subject: =?UTF-8?q?Split=20evaluation=20and=20execution=20=F0=9F=94=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/mod.rs | 2 +- src/layout/spacing.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout') 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 { +pub fn layout(env: &mut Env, tree: &Tree) -> Vec { 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)] -- cgit v1.2.3