summaryrefslogtreecommitdiff
path: root/engine/src/util.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-05-18 16:57:03 +0200
committerHampusM <hampus@hampusmat.com>2024-05-18 16:57:03 +0200
commitd139e19bd287ba340b923136c266a77367b83990 (patch)
tree4d8e469ea2ebf9445236c0a2b3d9b392460282f5 /engine/src/util.rs
parentd7675fd0119afe5e9cc872ce8bbb2977a16f0b26 (diff)
refactor(engine): fix clippy lints
Diffstat (limited to 'engine/src/util.rs')
-rw-r--r--engine/src/util.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/src/util.rs b/engine/src/util.rs
index a7d5794..409b98f 100644
--- a/engine/src/util.rs
+++ b/engine/src/util.rs
@@ -60,6 +60,7 @@ macro_rules! builder {
impl $builder_name
{
$(
+ #[must_use]
$visibility fn $field(mut self, $field: $field_type) -> Self
{
self.$field = $field;
@@ -67,6 +68,7 @@ macro_rules! builder {
}
)*
+ #[must_use]
$visibility fn build(self) -> $name {
$name {
$(