summaryrefslogtreecommitdiff
path: root/src/geom/point.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/geom/point.rs')
-rw-r--r--src/geom/point.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geom/point.rs b/src/geom/point.rs
index 31b84d81..10ab2d3a 100644
--- a/src/geom/point.rs
+++ b/src/geom/point.rs
@@ -40,8 +40,8 @@ impl Get<SpecAxis> for Point {
impl Switch for Point {
type Other = Gen<Length>;
- fn switch(self, dirs: Gen<Dir>) -> Self::Other {
- match dirs.main.axis() {
+ fn switch(self, flow: Flow) -> Self::Other {
+ match flow.main.axis() {
SpecAxis::Horizontal => Gen::new(self.x, self.y),
SpecAxis::Vertical => Gen::new(self.y, self.x),
}