mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
remove Cancelable from ids
This commit is contained in:
parent
490112dea1
commit
fafcd103d2
6 changed files with 27 additions and 34 deletions
|
@ -2,7 +2,6 @@ mod scope;
|
|||
|
||||
use std::sync::Arc;
|
||||
|
||||
use ra_db::Cancelable;
|
||||
use ra_syntax::{TreeArc, ast::{self, NameOwner}};
|
||||
|
||||
use crate::{
|
||||
|
@ -24,12 +23,12 @@ impl Function {
|
|||
db.body_hir(self.def_id)
|
||||
}
|
||||
|
||||
pub(crate) fn module(&self, db: &impl HirDatabase) -> Cancelable<Module> {
|
||||
pub(crate) fn module(&self, db: &impl HirDatabase) -> Module {
|
||||
self.def_id.module(db)
|
||||
}
|
||||
|
||||
/// The containing impl block, if this is a method.
|
||||
pub(crate) fn impl_block(&self, db: &impl HirDatabase) -> Cancelable<Option<ImplBlock>> {
|
||||
pub(crate) fn impl_block(&self, db: &impl HirDatabase) -> Option<ImplBlock> {
|
||||
self.def_id.impl_block(db)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue