mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Code review fixes
This commit is contained in:
parent
201b344f2b
commit
24784c60df
3 changed files with 62 additions and 69 deletions
|
@ -399,8 +399,8 @@ impl Analysis {
|
|||
}
|
||||
|
||||
/// Returns a list of the places in the file where type hints can be displayed.
|
||||
pub fn inlay_hints(&self, file_id: FileId) -> Vec<InlayHint> {
|
||||
inlay_hints::inlay_hints(&self.db.parse(file_id).tree())
|
||||
pub fn inlay_hints(&self, file_id: FileId) -> Cancelable<Vec<InlayHint>> {
|
||||
self.with_db(|db| inlay_hints::inlay_hints(&db.parse(file_id).tree()))
|
||||
}
|
||||
|
||||
/// Returns the set of folding ranges.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue