better type_id for nested storages
This commit is contained in:
parent
776c865781
commit
6233cc9d12
4 changed files with 22 additions and 2 deletions
|
|
@ -23,6 +23,10 @@ impl<U: StorageFactory> StorageFactory for TimingStorageFactory<U> {
|
|||
underlying: self.underlying_factory.init_storage(info)?,
|
||||
})
|
||||
}
|
||||
|
||||
fn is_type_id(&self, type_id: std::any::TypeId) -> bool {
|
||||
self.underlying_factory.is_type_id(type_id)
|
||||
}
|
||||
}
|
||||
|
||||
pub struct TimingStorage<U> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue