spirv support: fix an overly-constrained lifetime parameter in the array index fn

This commit is contained in:
2022-07-24 21:51:20 -07:00
parent 7286d272b9
commit b70cafa205

View File

@@ -147,7 +147,7 @@ impl<'a, T: Copy> ArrayHandle<'a, T> {
}
}
impl<'a, T> ArrayHandle<'a, T> {
pub fn get_ref(&self) -> &T {
pub fn get_ref(&self) -> &'a T {
unsafe {
self.base.index_ref(self.index)
}