From ff6e9a8599f5a1a4893357e7d5b5dc057be21bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Rom=C3=A1n=20N=C3=BA=C3=B1ez?= Date: Tue, 15 Sep 2026 20:01:39 +0200 Subject: [PATCH] Stop using manual hashing for dash state --- src/fighter/state/dash.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/fighter/state/dash.rs b/src/fighter/state/dash.rs index 591ad82..fbad26f 100644 --- a/src/fighter/state/dash.rs +++ b/src/fighter/state/dash.rs @@ -11,18 +11,12 @@ use crate::fighter::state::fall::FallState; use crate::fighter::state::ground::{GroundedMotionResult, GroundedStateCommon}; use crate::input::FighterCommands::{SmashMoveLeft, SmashMoveRight}; -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Hash)] pub struct DashState { direction: FighterFacingDirection, pub ground_common: GroundedStateCommon, } -impl std::hash::Hash for DashState { - fn hash(&self, state: &mut H) { - self.direction.hash(state); - } -} - impl DashState { pub fn new(direction: FighterFacingDirection, ground_common: GroundedStateCommon) -> Self { Self {