From 352c6fcb6c4d4d278a56d2732f7a1e960c2c0b83 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:21:28 +0000 Subject: [PATCH] Stop using manual hashing for dash state (#31) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.eirexe.moe/EIREXE/shinespark/pulls/31 Co-authored-by: Álex Román Núñez --- src/fighter/state/dash.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/fighter/state/dash.rs b/src/fighter/state/dash.rs index 591ad82..61eb325 100644 --- a/src/fighter/state/dash.rs +++ b/src/fighter/state/dash.rs @@ -1,5 +1,3 @@ -use std::hash::Hasher; - use super::{ CollisionContext, EnterContext, FighterStateImpl, InterruptContext, UpdateContext, ground, run, wait, walk, @@ -11,18 +9,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 {