mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
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:
parent
afc3ccbece
commit
f7d113625e
1 changed files with 0 additions and 8 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue