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

This commit is contained in:
teoxoy authored and Teodor Tanasoaia committed 2024-07-03 15:01:41 +02:00
1 parent 9308e15048
commit 3df4c8a502
1 file changed
-10
-10
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,