From 81804a860a082ee50863f78762ed901ed9f9ee28 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 22 Aug 2025 17:45:36 +0200 Subject: refactor(ecs): fix clippy lints --- ecs/src/pair.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ecs/src/pair.rs') 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( &self, ) -> Option> @@ -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( &self, ) -> Option> @@ -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() -- cgit v1.2.3-18-g5258