diff options
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 | } |