spirv support: fix an overly-constrained lifetime parameter in the array index fn
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user