mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Small improvements from review comments
This commit is contained in:
parent
d0bdaa6c00
commit
5db5f5cc1d
3 changed files with 20 additions and 20 deletions
|
@ -170,10 +170,10 @@ impl ModuleImplBlocks {
|
|||
let (file_id, module_source) = module.definition_source(db)?;
|
||||
let node = match &module_source {
|
||||
ModuleSource::SourceFile(node) => node.syntax(),
|
||||
ModuleSource::Module(node) => match node.item_list() {
|
||||
Some(item_list) => item_list.syntax(),
|
||||
None => return Ok(()),
|
||||
},
|
||||
ModuleSource::Module(node) => node
|
||||
.item_list()
|
||||
.expect("inline module should have item list")
|
||||
.syntax(),
|
||||
};
|
||||
|
||||
let source_file_items = db.file_items(file_id.into());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue