Skip to content

Commit fd62ac1

Browse files
fmt
1 parent d2dae03 commit fd62ac1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/librustdoc/doctest/rust.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,9 @@ impl HirCollector<'_> {
115115
nested: F,
116116
) {
117117
let ast_attrs = self.tcx.hir_attrs(self.tcx.local_def_id_to_hir_id(def_id));
118-
if let Some(ref cfg) = extract_cfg_from_attrs(
119-
ast_attrs.iter(),
120-
self.tcx,
121-
&mut CfgInfo::default(),
122-
) && !cfg.matches(&self.tcx.sess.psess)
118+
if let Some(ref cfg) =
119+
extract_cfg_from_attrs(ast_attrs.iter(), self.tcx, &mut CfgInfo::default())
120+
&& !cfg.matches(&self.tcx.sess.psess)
123121
{
124122
return;
125123
}

0 commit comments

Comments
 (0)