fix: use ItemInNs::Macros to convert ModuleItem to ItemInNs
This commit is contained in:
parent
9b8b6f92b2
commit
51b138cc79
1 changed files with 1 additions and 0 deletions
|
|
@ -2784,6 +2784,7 @@ impl From<ModuleDef> for ItemInNs {
|
|||
ModuleDef::Static(_) | ModuleDef::Const(_) | ModuleDef::Function(_) => {
|
||||
ItemInNs::Values(module_def)
|
||||
}
|
||||
ModuleDef::Macro(it) => ItemInNs::Macros(it),
|
||||
_ => ItemInNs::Types(module_def),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue