mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
change PhantomData syntax
This commit is contained in:
1 parent
bbef2b7622
commit
f7794fd82b
1 file changed
+3
-3
@@ -105,10 +105,10 @@ impl IdentityManager {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Storage<T, I:'static + TypedId> {
|
||||
pub struct Storage<T, I:TypedId> {
|
||||
//TODO: consider concurrent hashmap?
|
||||
map: VecMap<(T, Epoch)>,
|
||||
_phantom: std::marker::PhantomData<&'static I>,
|
||||
_phantom: std::marker::PhantomData<I>,
|
||||
}
|
||||
|
||||
impl<T, I:TypedId> ops::Index<I> for Storage<T, I> {
|
||||
@@ -137,7 +137,7 @@ impl<T, I:TypedId> Storage<T, I> {
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Registry<T, I: 'static + TypedId + From<Id>> {
|
||||
pub struct Registry<T, I:TypedId + From<Id>> {
|
||||
#[cfg(feature = "local")]
|
||||
identity: Mutex<IdentityManager>,
|
||||
data: RwLock<Storage<T, I>>,
|
||||
|
||||
Reference in new issue
Block a user