aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder/moves
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-05-07 11:27:58 +0800
committermat <git@matdoes.dev>2025-05-07 11:27:58 +0800
commitaa0256da102103eedc9897458dd81516962a80a3 (patch)
tree9d01f879a7c75750acd8de0c308247c12bbeea9d /azalea/src/pathfinder/moves
parente9452032bfc95cb7ad4a8798b13648e164536cf1 (diff)
downloadazalea-drasl-aa0256da102103eedc9897458dd81516962a80a3.tar.xz
upgrade rust version and fix clippy warnings
Diffstat (limited to 'azalea/src/pathfinder/moves')
-rw-r--r--azalea/src/pathfinder/moves/basic.rs8
1 files changed, 4 insertions, 4 deletions
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;
}
}