Update src/geometry/scale_coordinates.rs

Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
This commit is contained in:
Yuri6037 2021-10-24 20:41:27 +02:00 committed by GitHub
parent 510ffcbb18
commit 8efa9f76b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ macro_rules! deref_impl(
impl<T: Scalar> DerefMut for Scale<T, $D> {
#[inline]
fn deref_mut(&mut self) -> &mut Self::Target {
unsafe { &mut *(self as *mut Scale<T, $D> as *mut Self::Target) }
self.vector.deref_mut()
}
}
}