diff --git a/store/postgres/src/relational.rs b/store/postgres/src/relational.rs index c6762535cd8..f6a14c3a5fa 100644 --- a/store/postgres/src/relational.rs +++ b/store/postgres/src/relational.rs @@ -559,10 +559,10 @@ impl Layout { let mut lower_now = lower_iter.next(); let mut upper_now = upper_iter.next(); // A closure to convert the entity data from the database into entity operation. - let transform = |ede: EntityDataExt, + let transform = |ede: &EntityDataExt, entity_op: EntityOperationKind| -> Result<(EntitySourceOperation, BlockNumber), StoreError> { - let e = EntityData::new(ede.entity, ede.data); + let e = EntityData::new(ede.entity.clone(), ede.data.clone()); let block = ede.block_number; let entity_type = e.entity_type(&self.input_schema); let entity = e.deserialize_with_layout::(self, None)?; diff --git a/store/test-store/tests/postgres/writable.rs b/store/test-store/tests/postgres/writable.rs index c331f1cb0e1..96ce2d58b39 100644 --- a/store/test-store/tests/postgres/writable.rs +++ b/store/test-store/tests/postgres/writable.rs @@ -399,7 +399,7 @@ fn read_immutable_only_range_test() { writable.deployment_synced().unwrap(); let br: Range = 0..18; let entity_types = vec![COUNTER2_TYPE.clone()]; - let e: BTreeMap> = sourceable + let e: BTreeMap> = sourceable .get_range(entity_types.clone(), CausalityRegion::ONCHAIN, br.clone()) .unwrap(); assert_eq!(e.len(), 4);