diff options
| author | HampusM <hampus@hampusmat.com> | 2026-09-22 18:22:46 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-09-22 18:22:46 +0200 |
| commit | c73ab25c9dbe40284cfd38beaf31e2a20a9810de (patch) | |
| tree | 51c5817a0c252a172c03a47e36886e563a4e623d /engine/src/transform.rs | |
| parent | 2ccda0cd5f81909fddc74d95f960f781a64bcae1 (diff) | |
refactor(engine): fix portion of clippy lints
Diffstat (limited to 'engine/src/transform.rs')
| -rw-r--r-- | engine/src/transform.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/src/transform.rs b/engine/src/transform.rs index 8e768a6..67fbe23 100644 --- a/engine/src/transform.rs +++ b/engine/src/transform.rs @@ -14,18 +14,21 @@ pub struct Transform impl Transform { + #[must_use] pub fn position(mut self, position: Vec3<f32>) -> Self { self.position = position; self } + #[must_use] pub fn scale(mut self, scale: Dimens3<f32>) -> Self { self.scale = scale; self } + #[must_use] pub fn to_matrix(&self) -> Matrix<f32, 4, 4> { let mut matrix = Matrix::new_identity(); |
