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 {