Test update, repo update
This commit is contained in:
1 parent
0326b56ded
commit
0f2090af77
3 files changed
+7
-6
No files matched your search
@@ -180,10 +180,11 @@ impl CardStatistics {
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct EntityHandle<E> {
|
||||
pub(crate) _phantom: PhantomData<E>,
|
||||
pub(crate) id: Id,
|
||||
pub(crate) real: bool,
|
||||
pub(crate) index: u32,
|
||||
pub(crate) _phantom: PhantomData<E>,
|
||||
|
||||
}
|
||||
|
||||
pub trait EntityData{
|
||||
|
||||
@@ -241,8 +241,8 @@ for DataRepositoryInner<T, D>
|
||||
h.real = true;
|
||||
}
|
||||
|
||||
for handle in cached.iter_mut() {
|
||||
let h = &mut **handle;
|
||||
for handle in cached.into_iter() {
|
||||
let h = handle;
|
||||
let idx = fast_position_of(self.cache.as_slice(), h).unwrap();
|
||||
self.data_layer
|
||||
.write_entity(&self.cache[idx], &self.connection.lock())?;
|
||||
|
||||
Reference in new issue
Block a user