aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-14 10:34:29 +0100
committerGitHub <[email protected]>2019-10-14 10:34:29 +0100
commit85361e8d507cf608001447a5ce2c4b6cd3f22535 (patch)
treeb85bc497c7c1c7a1976fdca733c40405bba1a1a4 /crates
parent77f2dd96a122e59a8d8df8afb53a741df9b1af76 (diff)
parenta1d631da4f4c4ffe317f3765c6aa5d4c08379e24 (diff)
Merge #2000
2000: Use correct db type r=matklad a=kjeremy I think this is more correct. No test fallouts. Co-authored-by: kjeremy <[email protected]>
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_ide_api/src/db.rs2
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
107fn line_index(db: &impl ra_db::SourceDatabase, file_id: FileId) -> Arc<LineIndex> { 107fn 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}