From 9ff3334c8c533a47effb97c8d4807c8dc137b266 Mon Sep 17 00:00:00 2001 From: Matthieu Vachon Date: Wed, 13 Dec 2023 15:50:28 -0500 Subject: [PATCH] Fixed warnings --- substreams-entity-change/src/tables.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/substreams-entity-change/src/tables.rs b/substreams-entity-change/src/tables.rs index 4761321..cffb7d4 100644 --- a/substreams-entity-change/src/tables.rs +++ b/substreams-entity-change/src/tables.rs @@ -465,7 +465,7 @@ impl_to_int32_value!(i32); #[cfg(test)] mod test { - use crate::pb::entity::{EntityChange, EntityChanges, entity_change::Operation, Field, Value, value::Typed, Array}; + use crate::pb::entity::{EntityChange, entity_change::Operation, Field, Value, value::Typed, Array}; use super::Tables; @@ -479,7 +479,6 @@ mod test { assert_eq!(changes.entity_changes[0], EntityChange { entity: "table".to_string(), id: "1".to_string(), - ordinal: 0, operation: Operation::Create as i32, fields: vec![ Field { @@ -493,9 +492,10 @@ mod test { ], })), }), - old_value: None, + ..Default::default() } ], + ..Default::default() }); } } \ No newline at end of file