mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
fix: use ItemInNs::Macros to convert ModuleItem to ItemInNs
This commit is contained in:
parent
67f7eb505e
commit
d5bb2f0cba
1 changed files with 1 additions and 0 deletions
|
@ -2784,6 +2784,7 @@ impl From<ModuleDef> for ItemInNs {
|
||||||
ModuleDef::Static(_) | ModuleDef::Const(_) | ModuleDef::Function(_) => {
|
ModuleDef::Static(_) | ModuleDef::Const(_) | ModuleDef::Function(_) => {
|
||||||
ItemInNs::Values(module_def)
|
ItemInNs::Values(module_def)
|
||||||
}
|
}
|
||||||
|
ModuleDef::Macro(it) => ItemInNs::Macros(it),
|
||||||
_ => ItemInNs::Types(module_def),
|
_ => ItemInNs::Types(module_def),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue