summaryrefslogtreecommitdiff
path: root/ecs/src/pair.rs
diff options
context:
space:
mode:
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()