aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/positions.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-01-17 08:50:46 -1345
committermat <git@matdoes.dev>2026-01-17 08:50:46 -1345
commitbe4f2df7be4963a863d6fd96f64275dd7028e9d4 (patch)
treeef3bcec160eb11207f08435b864fafde2f17030e /azalea/src/pathfinder/positions.rs
parent74ef7d19b2bc4453f5368cc39c838582f2f3bafd (diff)
downloadazalea-drasl-be4f2df7be4963a863d6fd96f64275dd7028e9d4.tar.xz
clippy
Diffstat (limited to 'azalea/src/pathfinder/positions.rs')
-rw-r--r--azalea/src/pathfinder/positions.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/azalea/src/pathfinder/positions.rs b/azalea/src/pathfinder/positions.rs
index ca2768b2..eb915242 100644
--- a/azalea/src/pathfinder/positions.rs
+++ b/azalea/src/pathfinder/positions.rs
@@ -160,7 +160,7 @@ impl From<BlockPos> for SmallChunkSectionPos {
}
impl PartialOrd for SmallChunkSectionPos {
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
- self.as_u64().partial_cmp(&other.as_u64())
+ Some(self.cmp(other))
}
}
impl Ord for SmallChunkSectionPos {