From c73ab25c9dbe40284cfd38beaf31e2a20a9810de Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 22 Sep 2026 18:22:46 +0200 Subject: refactor(engine): fix portion of clippy lints --- engine/src/projection.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine/src/projection.rs') diff --git a/engine/src/projection.rs b/engine/src/projection.rs index b3bfa00..91a0259 100644 --- a/engine/src/projection.rs +++ b/engine/src/projection.rs @@ -15,6 +15,7 @@ pub enum Projection impl Projection { + #[must_use] pub fn to_matrix_rh( &self, window_size: PhysicalSize, @@ -47,6 +48,7 @@ impl Perspective { /// Creates a perspective projection matrix using right-handed coordinates. #[inline] + #[must_use] pub fn to_matrix_rh(&self, aspect: f32, clip_volume: ClipVolume) -> Matrix { @@ -107,12 +109,14 @@ pub struct Orthographic impl Orthographic { + #[must_use] pub fn builder() -> OrthographicBuilder { OrthographicBuilder::default() } /// Creates a orthographic projection matrix using right-handed coordinates. + #[must_use] pub fn to_matrix_rh( &self, window_size: PhysicalSize, @@ -187,6 +191,7 @@ pub struct OrthographicParams } /// Creates a orthographic projection matrix using right-handed coordinates. +#[must_use] pub fn orthographic_rh( OrthographicParams { left, right, bottom, top, near, far }: OrthographicParams, clip_volume: ClipVolume, -- cgit v1.2.3-18-g5258