@@ -12,7 +12,7 @@ use std::process::Command;
1212use std:: str;
1313use tantivy:: collector:: TopDocs ;
1414use tantivy:: query:: { BooleanQuery , BoostQuery , Occur , Query , RegexQuery , TermQuery } ;
15- use tantivy:: { schema:: * , ReloadPolicy } ;
15+ use tantivy:: { schema:: * , ReloadPolicy , Document } ;
1616use tantivy:: { Index , IndexWriter } ;
1717use tower_lsp:: lsp_types:: InitializeParams ;
1818use tower_lsp:: lsp_types:: {
@@ -1230,7 +1230,7 @@ impl Persistence {
12301230 pub fn find_references (
12311231 & self ,
12321232 params : TextDocumentPositionParams ,
1233- ) -> tantivy:: Result < Vec < tantivy :: Document > > {
1233+ ) -> tantivy:: Result < Vec < Document > > {
12341234 let path = params. text_document . uri . path ( ) ;
12351235 let relative_path = path. replace ( & self . workspace_path , "" ) ;
12361236
@@ -1401,7 +1401,7 @@ impl Persistence {
14011401 pub fn find_references_in_workspace (
14021402 & self ,
14031403 query : String ,
1404- ) -> tantivy:: Result < Vec < tantivy :: Document > > {
1404+ ) -> tantivy:: Result < Vec < Document > > {
14051405 if let Some ( index) = & self . index {
14061406 let reader = index
14071407 . reader_builder ( )
@@ -1458,7 +1458,7 @@ impl Persistence {
14581458 pub fn documents_to_locations (
14591459 & self ,
14601460 path : & str ,
1461- documents : Vec < tantivy :: Document > ,
1461+ documents : Vec < Document > ,
14621462 ) -> Vec < Location > {
14631463 let mut locations = Vec :: new ( ) ;
14641464
@@ -1495,7 +1495,7 @@ impl Persistence {
14951495 pub fn rename_tokens (
14961496 & self ,
14971497 path : & str ,
1498- documents : Vec < tantivy :: Document > ,
1498+ documents : Vec < Document > ,
14991499 new_name : & String ,
15001500 ) -> WorkspaceEdit {
15011501 let mut edits = Vec :: new ( ) ;
@@ -1537,7 +1537,7 @@ impl Persistence {
15371537
15381538 pub fn documents_to_symbol_information (
15391539 & self ,
1540- documents : Vec < tantivy :: Document > ,
1540+ documents : Vec < Document > ,
15411541 ) -> Vec < SymbolInformation > {
15421542 let mut symbol_infos = Vec :: new ( ) ;
15431543
0 commit comments