mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
remove Cancelable from Module API
This commit is contained in:
parent
91feed736f
commit
ca52cf1ecd
6 changed files with 18 additions and 22 deletions
|
@ -167,7 +167,7 @@ impl ModuleImplBlocks {
|
|||
}
|
||||
|
||||
fn collect(&mut self, db: &impl HirDatabase, module: Module) -> Cancelable<()> {
|
||||
let (file_id, module_source) = module.definition_source(db)?;
|
||||
let (file_id, module_source) = module.definition_source(db);
|
||||
let node = match &module_source {
|
||||
ModuleSource::SourceFile(node) => node.syntax(),
|
||||
ModuleSource::Module(node) => node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue