mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
remove Cancelable from funciton body
This commit is contained in:
parent
7c977a7dcd
commit
040a622c52
9 changed files with 16 additions and 21 deletions
|
@ -301,13 +301,13 @@ impl Function {
|
|||
def_id_to_ast(db, self.def_id)
|
||||
}
|
||||
|
||||
pub fn body_syntax_mapping(&self, db: &impl HirDatabase) -> Cancelable<Arc<BodySyntaxMapping>> {
|
||||
pub fn body_syntax_mapping(&self, db: &impl HirDatabase) -> Arc<BodySyntaxMapping> {
|
||||
db.body_syntax_mapping(self.def_id)
|
||||
}
|
||||
|
||||
pub fn scopes(&self, db: &impl HirDatabase) -> Cancelable<ScopesWithSyntaxMapping> {
|
||||
let scopes = db.fn_scopes(self.def_id)?;
|
||||
let syntax_mapping = db.body_syntax_mapping(self.def_id)?;
|
||||
let syntax_mapping = db.body_syntax_mapping(self.def_id);
|
||||
Ok(ScopesWithSyntaxMapping {
|
||||
scopes,
|
||||
syntax_mapping,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue