aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/traits/light_maps.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:20 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:20 +0100
commit51168c753286eeee64410ab19dc9f78a4ea479e4 (patch)
treed384093c6fd11b36b189013b663f3500b18ec2a4 /stockton-levels/src/traits/light_maps.rs
parentd076d3a6fd484e298915cd85609ba9706abacc87 (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/traits/light_maps.rs')
-rw-r--r--stockton-levels/src/traits/light_maps.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/stockton-levels/src/traits/light_maps.rs b/stockton-levels/src/traits/light_maps.rs
index 406746d..9b30d91 100644
--- a/stockton-levels/src/traits/light_maps.rs
+++ b/stockton-levels/src/traits/light_maps.rs
@@ -54,9 +54,9 @@ impl fmt::Debug for LightMap {
}
}
-pub trait HasLightMaps<'a> {
- type LightMapsIter: Iterator<Item = &'a LightMap>;
+pub trait HasLightMaps {
+ type LightMapsIter<'a>: Iterator<Item = &'a LightMap>;
- fn lightmaps_iter(&'a self) -> Self::LightMapsIter;
- fn get_lightmap(&'a self, index: u32) -> &'a LightMap;
+ fn lightmaps_iter<'a>(&'a self) -> Self::LightMapsIter<'a>;
+ fn get_lightmap<'a>(&'a self, index: u32) -> &'a LightMap;
} \ No newline at end of file