summaryrefslogtreecommitdiff
path: root/library/src/layout
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/layout')
-rw-r--r--library/src/layout/stack.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/layout/stack.rs b/library/src/layout/stack.rs
index 8146114a..b1f7f59d 100644
--- a/library/src/layout/stack.rs
+++ b/library/src/layout/stack.rs
@@ -237,7 +237,7 @@ impl<'a> StackLayouter<'a> {
// the region expands.
let mut size = self
.expand
- .select(self.initial, self.used.to_axes(self.axis))
+ .select(self.initial, self.used.into_axes(self.axis))
.min(self.initial);
// Expand fully if there are fr spacings.
@@ -318,7 +318,7 @@ impl<T> Gen<T> {
}
/// Convert to the specific representation, given the current main axis.
- fn to_axes(self, main: Axis) -> Axes<T> {
+ fn into_axes(self, main: Axis) -> Axes<T> {
match main {
Axis::X => Axes::new(self.main, self.cross),
Axis::Y => Axes::new(self.cross, self.main),
@@ -334,6 +334,6 @@ impl Gen<Abs> {
/// Convert to a point.
fn to_point(self, main: Axis) -> Point {
- self.to_axes(main).to_point()
+ self.into_axes(main).to_point()
}
}