aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/nearest_entity.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/nearest_entity.rs b/azalea/src/nearest_entity.rs
index 363c8fb0..415c7266 100644
--- a/azalea/src/nearest_entity.rs
+++ b/azalea/src/nearest_entity.rs
@@ -129,7 +129,7 @@ where
position: &'a Position,
instance_name: &'a InstanceName,
max_distance: f64,
- ) -> impl Iterator<Item = (Entity, f64)> + '_ {
+ ) -> impl Iterator<Item = (Entity, f64)> + 'a {
self.filtered_entities
.iter()
.filter_map(move |(target_entity, e_instance, e_pos)| {
@@ -156,7 +156,7 @@ where
&'a self,
entity: Entity,
max_distance: f64,
- ) -> impl Iterator<Item = (Entity, f64)> + '_ {
+ ) -> impl Iterator<Item = (Entity, f64)> + 'a {
let position;
let instance_name;
if let Ok((pos, instance)) = self.all_entities.get(entity) {