summaryrefslogtreecommitdiff
path: root/src/layout/stacked.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2019-11-17 15:16:37 +0100
committerLaurenz <laurmaedje@gmail.com>2019-11-17 15:16:37 +0100
commitf6cb4d725ee6e4fd09b92b5af7348d11ac951b10 (patch)
tree7cf8bc7b0158a8a453fd9e2a2fe5a857ef036d5e /src/layout/stacked.rs
parent4d0bdc4ca4cb5e8ca1a70b38a0fc0ec37d9e4857 (diff)
Update standard library functions 🎁
Diffstat (limited to 'src/layout/stacked.rs')
-rw-r--r--src/layout/stacked.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/stacked.rs b/src/layout/stacked.rs
index 77af6f38..8113a4b7 100644
--- a/src/layout/stacked.rs
+++ b/src/layout/stacked.rs
@@ -93,7 +93,7 @@ impl StackLayouter {
}
/// Update the axes in use by this stack layouter.
- pub fn set_axes(&self, axes: LayoutAxes) {
+ pub fn set_axes(&mut self, axes: LayoutAxes) {
if axes != self.ctx.axes {
self.finish_boxes();
self.usable = self.remains();
@@ -171,8 +171,8 @@ impl StackLayouter {
}
/// This layouter's context.
- pub fn ctx(&self) -> StackContext {
- self.ctx
+ pub fn ctx(&self) -> &StackContext {
+ &self.ctx
}
/// The (generalized) usable area of the current space.