Skip to content

Commit 8b1c71d

Browse files
committed
fix fmt
Signed-off-by: xizheyin <[email protected]>
1 parent 4bbcf10 commit 8b1c71d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/librustdoc/passes/strip_hidden.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)