diff options
Diffstat (limited to 'stockton-levels/src/traits/entities.rs')
-rw-r--r-- | stockton-levels/src/traits/entities.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stockton-levels/src/traits/entities.rs b/stockton-levels/src/traits/entities.rs index 6a762e0..706f25a 100644 --- a/stockton-levels/src/traits/entities.rs +++ b/stockton-levels/src/traits/entities.rs @@ -22,8 +22,8 @@ pub struct Entity { pub attributes: HashMap<String, String>, } -pub trait HasEntities<'a> { - type EntitiesIter: Iterator<Item = &'a Entity>; +pub trait HasEntities { + type EntitiesIter<'a>: Iterator<Item = &'a Entity>; - fn entities_iter(&'a self) -> Self::EntitiesIter; + fn entities_iter<'a>(&'a self) -> Self::EntitiesIter<'a>; }
\ No newline at end of file |