File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -91,16 +91,16 @@ impl DocFolder for Stripper<'_, '_> {
9191
9292 if let clean:: ImportItem ( clean:: Import { source, .. } ) = & i. kind
9393 && let Some ( source_did) = source. did
94- && let Some ( import_def_id) = i. def_id ( ) . and_then ( |def_id| def_id. as_local ( ) )
95- {
96- let reexports = reexport_chain ( self . tcx , import_def_id, source_did) ;
97-
98- // Check if any reexport in the chain has a hidden source
99- let has_hidden_source = reexports
100- . iter ( )
101- . filter_map ( |reexport| reexport. id ( ) )
102- . any ( |reexport_did| self . tcx . is_doc_hidden ( reexport_did) )
103- || self . tcx . is_doc_hidden ( source_did) ;
94+ && let Some ( import_def_id) = i. def_id ( ) . and_then ( |def_id| def_id. as_local ( ) )
95+ {
96+ let reexports = reexport_chain ( self . tcx , import_def_id, source_did) ;
97+
98+ // Check if any reexport in the chain has a hidden source
99+ let has_hidden_source = reexports
100+ . iter ( )
101+ . filter_map ( |reexport| reexport. id ( ) )
102+ . any ( |reexport_did| self . tcx . is_doc_hidden ( reexport_did) )
103+ || self . tcx . is_doc_hidden ( source_did) ;
104104
105105 if has_hidden_source {
106106 return None ;
You can’t perform that action at this time.
0 commit comments