aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/q3/light_vols.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/q3/light_vols.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/q3/light_vols.rs')
-rw-r--r--stockton-levels/src/q3/light_vols.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/stockton-levels/src/q3/light_vols.rs b/stockton-levels/src/q3/light_vols.rs
index 02c4cb4..202c375 100644
--- a/stockton-levels/src/q3/light_vols.rs
+++ b/stockton-levels/src/q3/light_vols.rs
@@ -43,14 +43,14 @@ pub fn from_data(data: &[u8]) -> Result<Box<[LightVol]>> {
}
-impl<'a> HasLightVols<'a> for Q3BSPFile {
- type LightVolsIter = std::slice::Iter<'a, LightVol>;
+impl HasLightVols for Q3BSPFile {
+ type LightVolsIter<'a> = std::slice::Iter<'a, LightVol>;
- fn lightvols_iter(&'a self) -> Self::LightVolsIter {
+ fn lightvols_iter<'a>(&'a self) -> Self::LightVolsIter<'a> {
self.light_vols.iter()
}
- fn get_lightvol(&'a self, index: u32) -> &'a LightVol {
+ fn get_lightvol<'a>(&'a self, index: u32) -> &'a LightVol {
&self.light_vols[index as usize]
}
}