diff --git a/src/geometry/scale.rs b/src/geometry/scale.rs index 23e46373..33a6bf3a 100755 --- a/src/geometry/scale.rs +++ b/src/geometry/scale.rs @@ -369,10 +369,7 @@ impl Scale #[inline] #[must_use] pub fn try_inverse_transform_point(&self, pt: &Point) -> Option> { - if let Some(s) = self.try_inverse() { - return Some(s * pt); - } - return None; + self.try_inverse().map(|s| s * pt) } }