Fix formatting
This commit is contained in:
parent
5661fe3fa9
commit
d95b7b31c7
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user