diff --git a/src/structs/quat.rs b/src/structs/quat.rs index b2368518..057eee1c 100644 --- a/src/structs/quat.rs +++ b/src/structs/quat.rs @@ -195,12 +195,7 @@ impl UnitQuat { /// The input quaternion will be normalized. #[inline] pub fn new_with_quat(q: Quat) -> UnitQuat { - let mut q = q; - let _ = q.normalize(); - - UnitQuat { - q: q - } + UnitQuat { q: q.normalize() } } /// Creates a new unit quaternion from Euler angles.