From c2b26948668bdfe22475ddfccab24bd163731aea Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Wed, 1 Feb 2023 14:08:06 -0600 Subject: [PATCH] Switch leafwing-input-manager forks. --- Cargo.toml | 2 +- src/pathfinding.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6a1ac53..ca4527e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ coord_2d = "0.3" futures-lite = "1" gilrs = "0.10" here_be_dragons = "0.2" -leafwing-input-manager = "0.8" +leafwing-input-manager = { git = "https://github.com/ndarilek/leafwing-input-manager" } maze_generator = "2" once_cell = "1" pathfinding = "4" diff --git a/src/pathfinding.rs b/src/pathfinding.rs index d8f09df..765f29c 100644 --- a/src/pathfinding.rs +++ b/src/pathfinding.rs @@ -23,7 +23,9 @@ use crate::{ pub struct NegotiatePathAction; impl Actionlike for NegotiatePathAction { - const N_VARIANTS: usize = 1; + fn n_variants() -> usize { + 1 + } fn get_at(index: usize) -> Option { if index == 0 {