diff options
author | kjeremy <[email protected]> | 2019-10-11 20:56:17 +0100 |
---|---|---|
committer | kjeremy <[email protected]> | 2019-10-11 20:56:17 +0100 |
commit | a1d631da4f4c4ffe317f3765c6aa5d4c08379e24 (patch) | |
tree | ee78cd73037da768015857830af3d1a65792b3a1 /crates | |
parent | 0896ca04c4e6f88ae268a39472570df4b6d360b0 (diff) |
Use correct db type
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_ide_api/src/db.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
104 | fn line_index(&self, file_id: FileId) -> Arc<LineIndex>; | 104 | fn line_index(&self, file_id: FileId) -> Arc<LineIndex>; |
105 | } | 105 | } |
106 | 106 | ||
107 | fn line_index(db: &impl ra_db::SourceDatabase, file_id: FileId) -> Arc<LineIndex> { | 107 | fn line_index(db: &impl LineIndexDatabase, file_id: FileId) -> Arc<LineIndex> { |
108 | let text = db.file_text(file_id); | 108 | let text = db.file_text(file_id); |
109 | Arc::new(LineIndex::new(&*text)) | 109 | Arc::new(LineIndex::new(&*text)) |
110 | } | 110 | } |