From aa0256da102103eedc9897458dd81516962a80a3 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 7 May 2025 11:27:58 +0800 Subject: upgrade rust version and fix clippy warnings --- azalea/src/pathfinder/moves/basic.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'azalea/src/pathfinder/moves/basic.rs') diff --git a/azalea/src/pathfinder/moves/basic.rs b/azalea/src/pathfinder/moves/basic.rs index 354472a7..fe0d81f5 100644 --- a/azalea/src/pathfinder/moves/basic.rs +++ b/azalea/src/pathfinder/moves/basic.rs @@ -173,10 +173,10 @@ fn execute_ascend_move(mut ctx: ExecuteCtx) { (-1, 0) => Some(properties::FacingCardinal::West), _ => None, }; - if let Some(expected_stair_facing) = expected_stair_facing { - if stair_facing == expected_stair_facing { - return; - } + if let Some(expected_stair_facing) = expected_stair_facing + && stair_facing == expected_stair_facing + { + return; } } -- cgit v1.2.3