diff --git a/src/geometry/scale_coordinates.rs b/src/geometry/scale_coordinates.rs index 2f3fb5bc..5158c62d 100644 --- a/src/geometry/scale_coordinates.rs +++ b/src/geometry/scale_coordinates.rs @@ -18,14 +18,14 @@ macro_rules! deref_impl( #[inline] fn deref(&self) -> &Self::Target { - unsafe { &*(self as *const Scale as *const Self::Target) } + self.vector.deref() } } 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() } } }