From 510ffcbb18eb840236d6a0c81ce76652c6a5fefe Mon Sep 17 00:00:00 2001 From: Yuri6037 Date: Sun, 24 Oct 2021 20:41:21 +0200 Subject: [PATCH] Update src/geometry/scale_coordinates.rs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien Crozet --- src/geometry/scale_coordinates.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geometry/scale_coordinates.rs b/src/geometry/scale_coordinates.rs index 2f3fb5bc..73ad815f 100644 --- a/src/geometry/scale_coordinates.rs +++ b/src/geometry/scale_coordinates.rs @@ -18,7 +18,7 @@ macro_rules! deref_impl( #[inline] fn deref(&self) -> &Self::Target { - unsafe { &*(self as *const Scale as *const Self::Target) } + self.vector.deref() } }