change PhantomData syntax

This commit is contained in:
psincf
2019-05-01 12:05:02 +02:00
parent bbef2b7622
commit f7794fd82b

View File

@@ -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>>,