revert: Revert pass by reference API change

This commit is contained in:
Gregory Conrad 2022-11-24 10:08:23 -05:00
parent 7c0e544839
commit 935a724c57
3 changed files with 5 additions and 5 deletions

View file

@ -450,7 +450,7 @@ impl Search {
let documents = index.documents(&txn, result.documents_ids)?;
let mut jsons = Vec::new();
for (_, obkv) in documents {
let json = milli::obkv_to_json(&displayed_fields, &fields_ids_map, &obkv)?;
let json = milli::obkv_to_json(&displayed_fields, &fields_ids_map, obkv)?;
jsons.push(json);
}