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(
129129 . await ?;
130130
131131 let hits: Vec < quickwit_proto:: search:: LeafHit > = partial_hits
132- . iter ( )
132+ . into_iter ( )
133133 . 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) ;
135135 if let Some ( ( _, document) ) = global_doc_addr_to_doc_json. remove_entry ( & global_doc_addr)
136136 {
137137 Some ( quickwit_proto:: search:: LeafHit {
138138 leaf_json : document. content_json ,
139- partial_hit : Some ( partial_hit. clone ( ) ) ,
139+ partial_hit : Some ( partial_hit) ,
140140 leaf_snippet_json : document. snippet_json ,
141141 } )
142142 } else {
You can’t perform that action at this time.
0 commit comments