simplify serde use
@@ -84,12 +84,10 @@ impl Hash for InsertKey {
);
state.write(table.as_bytes());
let values = self.changed_settings.get_setting_values();
- for value in values.into_iter() {
- let serialized = serde_json::to_string(&value).unwrap();
+ let serialized = serde_json::to_string(&values).unwrap();
state.write(serialized.as_bytes());
}
}
-}
impl InsertKey {
pub fn try_create(plan: Arc<InsertPlan>, changed_settings: Arc<Settings>) -> Self {
