Modules are either public, or private, so private modules should be stripped out
This commit is contained in:
parent
9e89ffc60e
commit
7180b5de44
1 changed files with 2 additions and 4 deletions
|
@ -128,7 +128,8 @@ impl<'a> fold::DocFolder for Stripper<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
clean::ViewItemItem(..) => {
|
||||
clean::ViewItemItem(..) |
|
||||
clean::ModuleItem(..) => {
|
||||
if i.visibility != Some(ast::Public) {
|
||||
return None
|
||||
}
|
||||
|
@ -140,9 +141,6 @@ impl<'a> fold::DocFolder for Stripper<'a> {
|
|||
}
|
||||
}
|
||||
|
||||
// handled below
|
||||
clean::ModuleItem(..) => {}
|
||||
|
||||
// trait impls for private items should be stripped
|
||||
clean::ImplItem(clean::Impl{ for_: clean::ResolvedPath{ id: ref for_id, .. }, .. }) => {
|
||||
if !self.exported_items.contains(for_id) {
|
||||
|
|
Loading…
Add table
Reference in a new issue