From cff2575a32219d4294ab05d69ad37eb6bd7a7b2d Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 21 Aug 2024 20:38:41 +0200 Subject: refactor(engine): fix clippy lints --- engine/src/lighting.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engine/src/lighting.rs') diff --git a/engine/src/lighting.rs b/engine/src/lighting.rs index 81dc475..48adb0e 100644 --- a/engine/src/lighting.rs +++ b/engine/src/lighting.rs @@ -19,6 +19,7 @@ pub struct PointLight impl PointLight { + #[must_use] pub fn builder() -> PointLightBuilder { PointLightBuilder::default() @@ -57,6 +58,7 @@ pub struct AttenuationParams impl Default for AttenuationParams { + #[must_use] fn default() -> Self { Self { @@ -81,6 +83,7 @@ pub struct DirectionalLight impl DirectionalLight { + #[must_use] pub fn builder() -> DirectionalLightBuilder { DirectionalLightBuilder::default() -- cgit v1.2.3-18-g5258