mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
remove unused std::ops::Index impl for Storage
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user