diff options
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/pathfinder/astar.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<W: PartialOrd + Debug> Ord for Weight<W> { impl<W: PartialOrd + Debug> Eq for Weight<W> {} impl<W: PartialOrd + Debug> PartialOrd for Weight<W> { fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> { - self.0.partial_cmp(&other.0) + Some(self.cmp(other)) } } |
