Merge remote-tracking branch 'origin/scale' into scale

This commit is contained in:
Yuri Edward 2021-10-24 20:55:35 +02:00
commit 866cabaa28
1 changed files with 2 additions and 2 deletions

View File

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