diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-05-17 14:41:46 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-05-17 14:41:46 +0200 |
| commit | 551ea99d05166b0be50792f767ddd38b996e32fa (patch) | |
| tree | ec5e86a087e79e8c181c7d4b904216a775227e2d /src/geom/axes.rs | |
| parent | 46aace78ac4ac1c075b9b1670dbb7372df1a0a82 (diff) | |
Show default values in documentation
Fixes #169
Fixes #1102
Diffstat (limited to 'src/geom/axes.rs')
| -rw-r--r-- | src/geom/axes.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geom/axes.rs b/src/geom/axes.rs index 8bc2456a..511e6ff5 100644 --- a/src/geom/axes.rs +++ b/src/geom/axes.rs @@ -141,9 +141,9 @@ where { fn fmt(&self, f: &mut Formatter) -> fmt::Result { if let Axes { x: Some(x), y: Some(y) } = - self.as_ref().map(|v| (v as &dyn Any).downcast_ref::<Align>()) + self.as_ref().map(|v| (v as &dyn Any).downcast_ref::<GenAlign>()) { - write!(f, "{:?}-{:?}", x, y) + write!(f, "{:?} + {:?}", x, y) } else if (&self.x as &dyn Any).is::<Abs>() { write!(f, "Size({:?}, {:?})", self.x, self.y) } else { |
