refactor(allocator): remove unnecessary Vec impl (#6213)

`impl<'alloc, T> ops::Index<usize> for &'alloc Vec<'alloc, T>` is unnecessary, as we already have `impl<'alloc, T> ops::Index<usize> for Vec<'alloc, T>`, whose `index` method takes a `&self`.
This commit is contained in:
overlookmotel 2024-10-01 10:54:47 +00:00
parent afc3ccbece
commit f7d113625e

View file

@ -143,14 +143,6 @@ impl<'alloc, T> ops::Index<usize> for Vec<'alloc, T> {
}
}
impl<'alloc, T> ops::Index<usize> for &'alloc Vec<'alloc, T> {
type Output = T;
fn index(&self, index: usize) -> &Self::Output {
self.0.index(index)
}
}
// Unused right now.
// impl<'alloc, T> ops::IndexMut<usize> for Vec<'alloc, T> {
// fn index_mut(&mut self, index: usize) -> &mut Self::Output {