mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
remove Cancelable from navigation target
This commit is contained in:
parent
9dd4099d93
commit
f1367e0370
11 changed files with 29 additions and 42 deletions
|
@ -297,8 +297,8 @@ impl Function {
|
|||
self.def_id
|
||||
}
|
||||
|
||||
pub fn source(&self, db: &impl HirDatabase) -> Cancelable<(HirFileId, TreeArc<ast::FnDef>)> {
|
||||
Ok(def_id_to_ast(db, self.def_id))
|
||||
pub fn source(&self, db: &impl HirDatabase) -> (HirFileId, TreeArc<ast::FnDef>) {
|
||||
def_id_to_ast(db, self.def_id)
|
||||
}
|
||||
|
||||
pub fn body_syntax_mapping(&self, db: &impl HirDatabase) -> Cancelable<Arc<BodySyntaxMapping>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue