summaryrefslogtreecommitdiff
path: root/src/layout/fixed.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-12 17:29:01 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-12 17:29:01 +0200
commit5243878d810d4817c81acc9ae346d46757fcf602 (patch)
tree4a8be00ab7262030a6ba8c6638b969a03ac1d9b5 /src/layout/fixed.rs
parent38157b0e0cbab22dc3f5fa5cc66d9b673a18a55b (diff)
Less vecs in layouting ⚡
Diffstat (limited to 'src/layout/fixed.rs')
-rw-r--r--src/layout/fixed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/fixed.rs b/src/layout/fixed.rs
index df099731..8a42a9d3 100644
--- a/src/layout/fixed.rs
+++ b/src/layout/fixed.rs
@@ -13,7 +13,7 @@ pub struct Fixed {
}
impl Layout for Fixed {
- fn layout(&self, ctx: &mut LayoutContext, areas: &Areas) -> Vec<Layouted> {
+ fn layout(&self, ctx: &mut LayoutContext, areas: &Areas) -> Layouted {
let Area { rem, full } = areas.current;
let size = Size::new(
self.width.map(|w| w.eval(full.width)).unwrap_or(rem.width),