From a1d631da4f4c4ffe317f3765c6aa5d4c08379e24 Mon Sep 17 00:00:00 2001 From: kjeremy Date: Fri, 11 Oct 2019 15:56:17 -0400 Subject: Use correct db type --- crates/ra_ide_api/src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_ide_api/src') diff --git a/crates/ra_ide_api/src/db.rs b/crates/ra_ide_api/src/db.rs index ea0714add..f9ee13573 100644 --- a/crates/ra_ide_api/src/db.rs +++ b/crates/ra_ide_api/src/db.rs @@ -104,7 +104,7 @@ pub(crate) trait LineIndexDatabase: ra_db::SourceDatabase + CheckCanceled { fn line_index(&self, file_id: FileId) -> Arc; } -fn line_index(db: &impl ra_db::SourceDatabase, file_id: FileId) -> Arc { +fn line_index(db: &impl LineIndexDatabase, file_id: FileId) -> Arc { let text = db.file_text(file_id); Arc::new(LineIndex::new(&*text)) } -- cgit v1.2.3