diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-10-11 00:24:11 +0200 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-10-11 00:24:11 +0200 |
| commit | e68a9eb5e9e15372313f9017be4a2d58fb690bfc (patch) | |
| tree | 690287a2c71d87c2955e992f1e9575166237188a /server/bot/src/pathfinding.rs | |
| parent | 3fe8ba7f1b9fa7e38fa03f55fd898c8ca2a0e996 (diff) | |
| download | hurrycurry-e68a9eb5e9e15372313f9017be4a2d58fb690bfc.tar hurrycurry-e68a9eb5e9e15372313f9017be4a2d58fb690bfc.tar.bz2 hurrycurry-e68a9eb5e9e15372313f9017be4a2d58fb690bfc.tar.zst | |
clippy + fmt; start using if let chains
Diffstat (limited to 'server/bot/src/pathfinding.rs')
| -rw-r--r-- | server/bot/src/pathfinding.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bot/src/pathfinding.rs b/server/bot/src/pathfinding.rs index 211f1890..41bc79c7 100644 --- a/server/bot/src/pathfinding.rs +++ b/server/bot/src/pathfinding.rs @@ -70,7 +70,7 @@ pub fn find_path(walkable: &HashSet<IVec2>, from: IVec2, to: IVec2) -> Option<Pa struct Open(i32, IVec2, IVec2, i32); impl PartialOrd for Open { fn partial_cmp(&self, other: &Self) -> Option<Ordering> { - Some(self.0.cmp(&other.0)) + Some(self.cmp(other)) } } impl Ord for Open { |