diff options
Diffstat (limited to 'mingling_core/src/program.rs')
| -rw-r--r-- | mingling_core/src/program.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/mingling_core/src/program.rs b/mingling_core/src/program.rs index 3c43cee..be8d85c 100644 --- a/mingling_core/src/program.rs +++ b/mingling_core/src/program.rs @@ -2,13 +2,9 @@ use std::env; use crate::{ - AnyOutput, GlobalResources, asset::dispatcher::Dispatcher, error::ChainProcessError, + AnyOutput, GlobalResContainer, asset::dispatcher::Dispatcher, error::ChainProcessError, hook::ProgramHook, }; -use std::{ - collections::HashMap, - sync::{Arc, Mutex}, -}; #[doc(hidden)] pub mod error; @@ -81,7 +77,7 @@ where pub(crate) hooks: Vec<ProgramHook<C>>, - pub(crate) resources: GlobalResources, + pub(crate) resources: GlobalResContainer, } impl<C> Program<C> @@ -124,7 +120,7 @@ where hooks: Vec::new(), - resources: Arc::new(Mutex::new(HashMap::new())), + resources: GlobalResContainer::new(), } } |
