From 7c5c87d316df31bfe732872df10eaa1a4b6f3a12 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 11 Nov 2024 00:24:27 +0100 Subject: refactor(ecs): fix clippy lints --- ecs/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ecs/src/lib.rs') diff --git a/ecs/src/lib.rs b/ecs/src/lib.rs index a643bec..78e526f 100644 --- a/ecs/src/lib.rs +++ b/ecs/src/lib.rs @@ -69,9 +69,7 @@ impl World { let mut world = Self::default(); - world - .add_sole(Stats::default()) - .expect("World already has stats sole"); + world.add_sole(Stats::default()).ok(); world } @@ -93,6 +91,7 @@ impl World } #[cfg_attr(feature = "debug", tracing::instrument(skip_all))] + #[doc(hidden)] pub fn create_entity_with_uid(&self, components: Comps, entity_uid: Uid) where Comps: ComponentSequence + TupleReduce, -- cgit v1.2.3-18-g5258