From 9bb997b4be9707e0c49e0f47e5ac52cbeaf3ab7c Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Fri, 1 Nov 2024 22:17:00 +0200 Subject: [PATCH] Make the innner field of `ActionsData` pub --- src/input_context/input_action.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/input_context/input_action.rs b/src/input_context/input_action.rs index 28168da..59c2370 100644 --- a/src/input_context/input_action.rs +++ b/src/input_context/input_action.rs @@ -7,7 +7,7 @@ use crate::action_value::{ActionValue, ActionValueDim}; /// Map for actions to their [`ActionData`]. #[derive(Default, Deref, DerefMut)] -pub struct ActionsData(HashMap); +pub struct ActionsData(pub HashMap); impl ActionsData { /// Returns associated state for action `A`. @@ -23,12 +23,6 @@ impl ActionsData { } } -impl From> for ActionsData { - fn from(value: HashMap) -> Self { - Self(value) - } -} - /// Tracker for action state. #[derive(Clone, Copy)] pub struct ActionData {