diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:20 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:20 +0100 |
commit | 51168c753286eeee64410ab19dc9f78a4ea479e4 (patch) | |
tree | d384093c6fd11b36b189013b663f3500b18ec2a4 /stockton-levels/src/q3/entities.rs | |
parent | d076d3a6fd484e298915cd85609ba9706abacc87 (diff) |
refactor(all): use new traits-based levels everywhere else.
unfortunately this also starts using an unstable feature - generic_associated_types
see rust-lang/rust#44265
Diffstat (limited to 'stockton-levels/src/q3/entities.rs')
-rw-r--r-- | stockton-levels/src/q3/entities.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stockton-levels/src/q3/entities.rs b/stockton-levels/src/q3/entities.rs index 1614f26..9284fe4 100644 --- a/stockton-levels/src/q3/entities.rs +++ b/stockton-levels/src/q3/entities.rs @@ -99,10 +99,10 @@ pub fn from_data(data: &[u8]) -> Result<Box<[Entity]>> { Ok(entities.into_boxed_slice()) } -impl<'a> HasEntities<'a> for Q3BSPFile { - type EntitiesIter = std::slice::Iter<'a, Entity>; +impl HasEntities for Q3BSPFile { + type EntitiesIter<'a> = std::slice::Iter<'a, Entity>; - fn entities_iter(&'a self) -> Self::EntitiesIter { + fn entities_iter<'a>(&'a self) -> Self::EntitiesIter<'a> { self.entities.iter() } } |