aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/nearest_entity.rs2
-rw-r--r--azalea/src/pathfinder/simulation.rs3
-rw-r--r--azalea/src/swarm/mod.rs1
3 files changed, 2 insertions, 4 deletions
diff --git a/azalea/src/nearest_entity.rs b/azalea/src/nearest_entity.rs
index 415c7266..867e3fe8 100644
--- a/azalea/src/nearest_entity.rs
+++ b/azalea/src/nearest_entity.rs
@@ -57,7 +57,7 @@ where
>,
}
-impl<'w, 's, 'a, F> EntityFinder<'w, 's, F>
+impl<'a, F> EntityFinder<'_, '_, F>
where
F: QueryFilter + 'static,
{
diff --git a/azalea/src/pathfinder/simulation.rs b/azalea/src/pathfinder/simulation.rs
index a24a1acb..ae76896c 100644
--- a/azalea/src/pathfinder/simulation.rs
+++ b/azalea/src/pathfinder/simulation.rs
@@ -154,8 +154,7 @@ impl Simulation {
pub fn is_mining(&self) -> bool {
// return true if the component is present and Some
self.get_component::<azalea_client::mining::MineBlockPos>()
- .map(|c| *c)
- .flatten()
+ .and_then(|c| *c)
.is_some()
}
}
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs
index e9644799..31f018cf 100644
--- a/azalea/src/swarm/mod.rs
+++ b/azalea/src/swarm/mod.rs
@@ -562,7 +562,6 @@ pub type BoxSwarmHandleFn<SS> =
/// }
/// Ok(())
/// }
-
impl Swarm {
/// Add a new account to the swarm. You can remove it later by calling
/// [`Client::disconnect`].