forked from M-Labs/nalgebra
Update src/geometry/scale_coordinates.rs
Co-authored-by: Sébastien Crozet <sebastien@crozet.re>
This commit is contained in:
parent
510ffcbb18
commit
8efa9f76b7
@ -25,7 +25,7 @@ macro_rules! deref_impl(
|
|||||||
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user