diff --git a/src/structure.rs b/src/structure.rs index 07d8099..35d560e 100644 --- a/src/structure.rs +++ b/src/structure.rs @@ -237,14 +237,12 @@ pub trait InnerSpace: VectorSpace where /// Returns a vector with the same direction, but with a magnitude of `1`. #[inline] - #[must_use] fn normalize(self) -> Self { self.normalize_to(Self::Scalar::one()) } /// Returns a vector with the same direction and a given magnitude. #[inline] - #[must_use] fn normalize_to(self, magnitude: Self::Scalar) -> Self { self * (magnitude / self.magnitude()) } @@ -252,7 +250,6 @@ pub trait InnerSpace: VectorSpace where /// Returns the result of linearly interpolating the magnitude of the vector /// towards the magnitude of `other` by the specified amount. #[inline] - #[must_use] fn lerp(self, other: Self, amount: Self::Scalar) -> Self { self + ((other - self) * amount) } @@ -261,7 +258,6 @@ pub trait InnerSpace: VectorSpace where /// [vector projection](https://en.wikipedia.org/wiki/Vector_projection) /// of the current inner space projected onto the supplied argument. #[inline] - #[must_use] fn project_on(self, other: Self) -> Self { other * (self.dot(other) / other.magnitude2()) } @@ -523,7 +519,6 @@ pub trait SquareMatrix where /// Invert this matrix, returning a new matrix. `m.mul_m(m.invert())` is /// the identity matrix. Returns `None` if this matrix is not invertible /// (has a determinant of zero). - #[must_use] fn invert(&self) -> Option; /// Test if this matrix is invertible. diff --git a/src/vector.rs b/src/vector.rs index 8613baf..6d88ded 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -659,7 +659,6 @@ impl Vector3 { /// Returns the cross product of the vector and `other`. #[inline] - #[must_use] pub fn cross(self, other: Vector3) -> Vector3 { Vector3::new((self.y * other.z) - (self.z * other.y), (self.z * other.x) - (self.x * other.z),