Stop using manual hashing for dash state
CI / build-and-test (pull_request) Failing after 14m25s

This commit is contained in:
2026-09-15 20:01:39 +02:00
parent b8b65e60e9
commit ff6e9a8599
+1 -7
View File
@@ -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<H: Hasher>(&self, state: &mut H) {
self.direction.hash(state);
}
}
impl DashState {
pub fn new(direction: FighterFacingDirection, ground_common: GroundedStateCommon) -> Self {
Self {