We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e65184a commit af0b2dcCopy full SHA for af0b2dc
1 file changed
quickwit/quickwit-search/src/fetch_docs.rs
@@ -129,14 +129,14 @@ pub async fn fetch_docs(
129
.await?;
130
131
let hits: Vec<quickwit_proto::search::LeafHit> = partial_hits
132
- .iter()
+ .into_iter()
133
.flat_map(|partial_hit| {
134
- let global_doc_addr = GlobalDocAddress::from_partial_hit(partial_hit);
+ let global_doc_addr = GlobalDocAddress::from_partial_hit(&partial_hit);
135
if let Some((_, document)) = global_doc_addr_to_doc_json.remove_entry(&global_doc_addr)
136
{
137
Some(quickwit_proto::search::LeafHit {
138
leaf_json: document.content_json,
139
- partial_hit: Some(partial_hit.clone()),
+ partial_hit: Some(partial_hit),
140
leaf_snippet_json: document.snippet_json,
141
})
142
} else {
0 commit comments