undo sort_key() returning Cow

This commit is contained in:
Alex Auvolat
2023-05-09 12:38:55 +02:00
parent 412ab77b08
commit 53bf2f070c
3 changed files with 8 additions and 18 deletions
+1 -1
View File
@@ -347,7 +347,7 @@ impl<F: TableSchema, R: TableReplication> TableData<F, R> {
// ---- Utility functions ----
pub fn tree_key(&self, p: &F::P, s: &F::S) -> Vec<u8> {
[p.hash().as_slice(), s.sort_key().as_ref()].concat()
[p.hash().as_slice(), s.sort_key()].concat()
}
pub fn decode_entry(&self, bytes: &[u8]) -> Result<F::E, Error> {