Compare commits

...
Author SHA1 Message Date
EIREXE 4180882af5 Fix Rust CI cache reuse
CI / build-and-test (pull_request) Successful in 11m10s
2026-09-15 20:19:48 +02:00
EIREXE ff6e9a8599 Stop using manual hashing for dash state
CI / build-and-test (pull_request) Failing after 14m25s
2026-09-15 20:01:39 +02:00
3 changed files with 5 additions and 12 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
# for Linux
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold", "-Zshare-generics=y", ]
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold", "-Zshare-generics=y", "-D", "warnings", ]
[unstable]
codegen-backend = true
+2 -1
View File
@@ -25,6 +25,7 @@ jobs:
- name: Cache Rust dependencies and build artifacts
uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2.8.2
with:
prefix-key: v1-rust
shared-key: linux-nightly
cache-bin: false
@@ -45,7 +46,7 @@ jobs:
pkg-config
- name: Build
run: RUSTFLAGS="-D warnings" cargo build --locked -j 4
run: cargo build --locked -j 4
- name: Run unit tests
run: cargo test --locked --lib -j 4
+1 -9
View File
@@ -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<H: Hasher>(&self, state: &mut H) {
self.direction.hash(state);
}
}
impl DashState {
pub fn new(direction: FighterFacingDirection, ground_common: GroundedStateCommon) -> Self {
Self {