summaryrefslogtreecommitdiff
path: root/engine/src/lighting.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-08-21 20:38:41 +0200
committerHampusM <hampus@hampusmat.com>2024-08-21 20:38:41 +0200
commitcff2575a32219d4294ab05d69ad37eb6bd7a7b2d (patch)
treed2489863f54d9c1508bc8ba5897f264368e11350 /engine/src/lighting.rs
parent217c32c11566ddfa09ae5790cf1ad7c9b4100a43 (diff)
refactor(engine): fix clippy lints
Diffstat (limited to 'engine/src/lighting.rs')
-rw-r--r--engine/src/lighting.rs3
1 files changed, 3 insertions, 0 deletions
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()