diff options
| author | Marek Barvíř <barvirm@gmail.com> | 2023-04-18 11:19:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-18 11:19:16 +0200 |
| commit | dd5e9723e09b60799277b44dcd446bccc0ab771e (patch) | |
| tree | 2fc4d71844dc3daa80722c18ab3aa235346abe3c /library/src/layout/stack.rs | |
| parent | 56673bcdf5a8be0f89a3781a5ce392736823dc44 (diff) | |
clippy::wrong_self_convention (#857)
Diffstat (limited to 'library/src/layout/stack.rs')
| -rw-r--r-- | library/src/layout/stack.rs | 6 |
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() } } |
