From e68a9eb5e9e15372313f9017be4a2d58fb690bfc Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 11 Oct 2025 00:24:11 +0200 Subject: clippy + fmt; start using if let chains --- server/bot/src/pathfinding.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/bot/src/pathfinding.rs') 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, from: IVec2, to: IVec2) -> Option Option { - Some(self.0.cmp(&other.0)) + Some(self.cmp(other)) } } impl Ord for Open { -- cgit v1.3