This commit is contained in:
@@ -29,12 +29,8 @@ impl AbilityLibraryImpl {
|
||||
impl AbilityLibrary for AbilityLibraryImpl {}
|
||||
|
||||
impl DataLibrary<dyn Ability> for AbilityLibraryImpl {
|
||||
fn map(&self) -> &IndexMap<StringKey, Arc<dyn Ability>> {
|
||||
&self.map
|
||||
}
|
||||
fn get_modify(&mut self) -> &mut IndexMap<StringKey, Arc<dyn Ability>> {
|
||||
&mut self.map
|
||||
}
|
||||
fn map(&self) -> &IndexMap<StringKey, Arc<dyn Ability>> { &self.map }
|
||||
fn get_modify(&mut self) -> &mut IndexMap<StringKey, Arc<dyn Ability>> { &mut self.map }
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -45,6 +41,7 @@ pub mod tests {
|
||||
use crate::static_data::AbilityImpl;
|
||||
use crate::static_data::DataLibrary;
|
||||
use crate::StringKey;
|
||||
use hashbrown::HashMap;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub fn build() -> AbilityLibraryImpl {
|
||||
@@ -54,7 +51,7 @@ pub mod tests {
|
||||
Arc::new(AbilityImpl::new(
|
||||
&"test_ability".into(),
|
||||
&"test_ability".into(),
|
||||
Vec::new(),
|
||||
HashMap::new(),
|
||||
)),
|
||||
);
|
||||
lib
|
||||
|
||||
Reference in New Issue
Block a user