Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-deangelis committed Feb 26, 2021
1 parent 5661fe3 commit d95b7b3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/librustdoc/passes/collect_intra_doc_links.rs
Expand Up @@ -839,7 +839,12 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
let self_id = if item.is_fake() {
None
// Checking if the item is a field in a variant in an enum
} else if (matches!(self.cx.tcx.def_kind(item.def_id), DefKind::Field) && matches!(self.cx.tcx.def_kind(self.cx.tcx.parent(item.def_id).unwrap()), DefKind::Variant)) {
} else if (matches!(self.cx.tcx.def_kind(item.def_id), DefKind::Field)
&& matches!(
self.cx.tcx.def_kind(self.cx.tcx.parent(item.def_id).unwrap()),
DefKind::Variant
))
{
self.cx.tcx.parent(item.def_id).and_then(|item_id| self.cx.tcx.parent(item_id))
} else if matches!(
self.cx.tcx.def_kind(item.def_id),
Expand Down

0 comments on commit d95b7b3

Please sign in to comment.