File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
quickwit/quickwit-search/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -129,14 +129,14 @@ pub async fn fetch_docs(
129
129
. await ?;
130
130
131
131
let hits: Vec < quickwit_proto:: search:: LeafHit > = partial_hits
132
- . iter ( )
132
+ . into_iter ( )
133
133
. flat_map ( |partial_hit| {
134
- let global_doc_addr = GlobalDocAddress :: from_partial_hit ( partial_hit) ;
134
+ let global_doc_addr = GlobalDocAddress :: from_partial_hit ( & partial_hit) ;
135
135
if let Some ( ( _, document) ) = global_doc_addr_to_doc_json. remove_entry ( & global_doc_addr)
136
136
{
137
137
Some ( quickwit_proto:: search:: LeafHit {
138
138
leaf_json : document. content_json ,
139
- partial_hit : Some ( partial_hit. clone ( ) ) ,
139
+ partial_hit : Some ( partial_hit) ,
140
140
leaf_snippet_json : document. snippet_json ,
141
141
} )
142
142
} else {
You can’t perform that action at this time.
0 commit comments