diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-13 13:51:58 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-13 13:51:58 +0200 |
| commit | 91e512069396f1de616ec2b0fe0cd31a76e7f2e9 (patch) | |
| tree | 204ef6032dd4d22b38236d4d85fc95c97e7a9f37 /src/geom/point.rs | |
| parent | 8680fcd4903b451909a5932e8b948a68c9aacb16 (diff) | |
BoxAlign and Flow aliases ✏
Diffstat (limited to 'src/geom/point.rs')
| -rw-r--r-- | src/geom/point.rs | 4 |
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), } |
