summaryrefslogtreecommitdiff
path: root/ecs/src/pair.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-08-22 17:45:36 +0200
committerHampusM <hampus@hampusmat.com>2025-08-22 17:45:36 +0200
commit81804a860a082ee50863f78762ed901ed9f9ee28 (patch)
tree8c672aca512fc9c0edc30f1e00a0802569e9cc61 /ecs/src/pair.rs
parente766f6581c2ca8a8963baed11ad29d6e67a0a8a0 (diff)
refactor(ecs): fix clippy lints
Diffstat (limited to 'ecs/src/pair.rs')
-rw-r--r--ecs/src/pair.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/ecs/src/pair.rs b/ecs/src/pair.rs
index 3dc9f36..7b5f54a 100644
--- a/ecs/src/pair.rs
+++ b/ecs/src/pair.rs
@@ -280,6 +280,7 @@ impl WildcardTargetHandle<'_>
/// # Panics
/// Will panic if:
/// - The component is mutably borrowed elsewhere
+ #[must_use]
pub fn get_component<ComponentData>(
&self,
) -> Option<ComponentHandle<'_, ComponentData>>
@@ -297,7 +298,7 @@ impl WildcardTargetHandle<'_>
);
}
},
- |handle| Some(handle),
+ Some,
)
}
@@ -307,6 +308,7 @@ impl WildcardTargetHandle<'_>
/// # Panics
/// Will panic if:
/// - The component is borrowed elsewhere
+ #[must_use]
pub fn get_component_mut<ComponentData>(
&self,
) -> Option<ComponentHandleMut<'_, ComponentData>>
@@ -326,7 +328,7 @@ impl WildcardTargetHandle<'_>
);
}
},
- |handle| Some(handle),
+ Some,
)
}
}
@@ -365,6 +367,7 @@ pub struct Wildcard(Infallible);
impl Wildcard
{
+ #[must_use]
pub fn uid() -> Uid
{
Uid::wildcard()