diff options
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/data.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/table/data.rs b/src/table/data.rs index dc1fd445..427ce763 100644 --- a/src/table/data.rs +++ b/src/table/data.rs @@ -206,12 +206,8 @@ where if value_changed || encoding_changed { let new_bytes_hash = blake2sum(&new_bytes[..]); - tx.insert( - &self.merkle_todo, - tree_key.to_vec(), - new_bytes_hash.as_slice(), - )?; - tx.insert(&self.store, tree_key.to_vec(), new_bytes)?; + tx.insert(&self.merkle_todo, tree_key, new_bytes_hash.as_slice())?; + tx.insert(&self.store, tree_key, new_bytes)?; Ok(Some((old_entry, new_entry, new_bytes_hash))) } else { Ok(None) |