From 1bff001db2914e8ee7bc331a4104592ad6e2e9a3 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 18 Jul 2024 15:52:12 +0200 Subject: clippy --- server/src/entity/customers/pathfinding.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'server/src/entity/customers/pathfinding.rs') diff --git a/server/src/entity/customers/pathfinding.rs b/server/src/entity/customers/pathfinding.rs index 97bd8328..87ccf391 100644 --- a/server/src/entity/customers/pathfinding.rs +++ b/server/src/entity/customers/pathfinding.rs @@ -47,7 +47,7 @@ pub fn find_path(walkable: &HashSet, from: IVec2, to: IVec2) -> Option Option { - self.0.partial_cmp(&other.0) + Some(self.0.cmp(&other.0)) } } impl Ord for Open { @@ -61,9 +61,7 @@ pub fn find_path(walkable: &HashSet, from: IVec2, to: IVec2) -> Option