diff --git a/src/geometry/scale_coordinates.rs b/src/geometry/scale_coordinates.rs index 73ad815f..5158c62d 100644 --- a/src/geometry/scale_coordinates.rs +++ b/src/geometry/scale_coordinates.rs @@ -25,7 +25,7 @@ macro_rules! deref_impl( impl DerefMut for Scale { #[inline] fn deref_mut(&mut self) -> &mut Self::Target { - unsafe { &mut *(self as *mut Scale as *mut Self::Target) } + self.vector.deref_mut() } } }