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/model.rs | |
| parent | 2ccda0cd5f81909fddc74d95f960f781a64bcae1 (diff) | |
refactor(engine): fix portion of clippy lints
Diffstat (limited to 'engine/src/model.rs')
| -rw-r--r-- | engine/src/model.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/src/model.rs b/engine/src/model.rs index 1269afd..560c43d 100644 --- a/engine/src/model.rs +++ b/engine/src/model.rs @@ -14,6 +14,7 @@ pub struct Model impl Model { + #[must_use] pub fn new(asset_handle: AssetHandle<Spec>) -> Self { Self { spec_asset: asset_handle } @@ -30,6 +31,7 @@ pub struct Spec impl Spec { + #[must_use] pub fn builder() -> SpecBuilder { SpecBuilder::default() @@ -62,6 +64,7 @@ pub struct SpecBuilder impl SpecBuilder { + #[must_use] pub fn mesh(mut self, asset: AssetHandle<Mesh>) -> Self { self.mesh_asset = Some(asset); @@ -69,6 +72,7 @@ impl SpecBuilder self } + #[must_use] pub fn materials( mut self, materials: impl IntoIterator<Item = MaterialDescription>, @@ -98,6 +102,7 @@ pub struct MaterialDescription impl MaterialDescription { + #[must_use] pub fn new(asset: AssetHandle<Material>) -> Self { Self { asset } |
