From d99ba0da5500a1a4917bf9c8c9e93e2caa4ada99 Mon Sep 17 00:00:00 2001 From: mat Date: Sun, 23 Jul 2023 22:17:17 -0500 Subject: clean up azalea-entity a little --- azalea/src/pathfinder/astar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'azalea/src/pathfinder') diff --git a/azalea/src/pathfinder/astar.rs b/azalea/src/pathfinder/astar.rs index 65caf337..0bdd0f17 100644 --- a/azalea/src/pathfinder/astar.rs +++ b/azalea/src/pathfinder/astar.rs @@ -106,6 +106,6 @@ impl Ord for Weight { impl Eq for Weight {} impl PartialOrd for Weight { fn partial_cmp(&self, other: &Self) -> Option { - self.0.partial_cmp(&other.0) + Some(self.cmp(other)) } } -- cgit v1.2.3