aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api/src/lib.rs
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2019-07-21 18:51:27 +0100
committerKirill Bulatov <[email protected]>2019-07-21 18:51:27 +0100
commit24784c60df583d1807faa889a84312df1d2e3b22 (patch)
tree69fee254755a8db21a8ad55e894b3a26a3c9a2b0 /crates/ra_ide_api/src/lib.rs
parent201b344f2b0c9e84606115d135cd658d0a955d2c (diff)
Code review fixes
Diffstat (limited to 'crates/ra_ide_api/src/lib.rs')
-rw-r--r--crates/ra_ide_api/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_ide_api/src/lib.rs b/crates/ra_ide_api/src/lib.rs
index af163088a..32168f12d 100644
--- a/crates/ra_ide_api/src/lib.rs
+++ b/crates/ra_ide_api/src/lib.rs
@@ -399,8 +399,8 @@ impl Analysis {
399 } 399 }
400 400
401 /// Returns a list of the places in the file where type hints can be displayed. 401 /// Returns a list of the places in the file where type hints can be displayed.
402 pub fn inlay_hints(&self, file_id: FileId) -> Vec<InlayHint> { 402 pub fn inlay_hints(&self, file_id: FileId) -> Cancelable<Vec<InlayHint>> {
403 inlay_hints::inlay_hints(&self.db.parse(file_id).tree()) 403 self.with_db(|db| inlay_hints::inlay_hints(&db.parse(file_id).tree()))
404 } 404 }
405 405
406 /// Returns the set of folding ranges. 406 /// Returns the set of folding ranges.