diff options
author | HampusM <hampus@hampusmat.com> | 2024-11-11 00:24:27 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-11-11 00:24:27 +0100 |
commit | 7c5c87d316df31bfe732872df10eaa1a4b6f3a12 (patch) | |
tree | dd8a0f1f3131ba279569899a008c058216c5d1e9 /ecs/src/lib.rs | |
parent | 06750934c33a8b1458d60fe8d877bbf29ffda955 (diff) |
refactor(ecs): fix clippy lints
Diffstat (limited to 'ecs/src/lib.rs')
-rw-r--r-- | ecs/src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
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<Comps>(&self, components: Comps, entity_uid: Uid) where Comps: ComponentSequence + TupleReduce<TypeTransformComponentsToAddedEvents>, |