From ee2575794e91b9457a74a95daf1dcc707058cd58 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 12 Oct 2025 23:01:54 +0300 Subject: upgrade deps and clean up lots of doc comments --- azalea-client/src/entity_query.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'azalea-client/src/entity_query.rs') diff --git a/azalea-client/src/entity_query.rs b/azalea-client/src/entity_query.rs index a1d761e3..6945549d 100644 --- a/azalea-client/src/entity_query.rs +++ b/azalea-client/src/entity_query.rs @@ -175,8 +175,10 @@ impl Client { predicate.find_all_sorted(self.ecs.clone(), &instance_name, (&position).into()) } - /// Get a component from an entity. Note that this will return an owned type - /// (i.e. not a reference) so it may be expensive for larger types. + /// Get a component from an entity. + /// + /// Note that this will return an owned type (i.e. not a reference) so it + /// may be expensive for larger types. /// /// If you're trying to get a component for this client, use /// [`Self::component`]. @@ -192,9 +194,10 @@ impl Client { components.clone() } - /// Get a component from an entity, if it exists. This is similar to - /// [`Self::entity_component`] but returns an `Option` instead of panicking - /// if the component isn't present. + /// Get a component from an entity, if it exists. + /// + /// This is similar to [`Self::entity_component`] but returns an `Option` + /// instead of panicking if the component isn't present. pub fn get_entity_component(&self, entity: Entity) -> Option { let mut ecs = self.ecs.lock(); let mut q = ecs.query::<&Q>(); -- cgit v1.2.3