summaryrefslogtreecommitdiff
path: root/src/layout/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs2
1 files changed, 1 insertions, 1 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 })
}