remove unused std::ops::Index impl for Storage

This commit is contained in:
teoxoy
2024-07-02 19:07:58 +02:00
committed by Teodor Tanasoaia
parent 9308e15048
commit 3df4c8a502

View File

@@ -1,4 +1,3 @@
use std::ops;
use std::sync::Arc;
use wgt::Backend;
@@ -55,15 +54,6 @@ where
kind: &'static str,
}
impl<T> ops::Index<Id<T::Marker>> for Storage<T>
where
T: StorageItem,
{
type Output = Arc<T>;
fn index(&self, id: Id<T::Marker>) -> &Arc<T> {
self.get(id).unwrap()
}
}
impl<T> Storage<T>
where
T: StorageItem,