Skip to content

Commit 5673bc5

Browse files
P1n3appl3jyn514
authored andcommitted
Format
1 parent ce4404a commit 5673bc5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/librustdoc/clean/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ impl ItemEnum {
316316
| MacroItem(_)
317317
| ProcMacroItem(_)
318318
| PrimitiveItem(_)
319-
| AssocConstItem(_,_)
320-
| AssocTypeItem(_,_)
319+
| AssocConstItem(_, _)
320+
| AssocTypeItem(_, _)
321321
| StrippedItem(_)
322322
| KeywordItem(_) => [].iter(),
323323
}

src/librustdoc/json/conversions.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ impl From<clean::Visibility> for Visibility {
8080
Public => Visibility::Public,
8181
Inherited => Visibility::Default,
8282
Crate => Visibility::Crate,
83-
Restricted(did, path) => Visibility::Restricted{parent: did.into(), path: path.whole_name()},
83+
Restricted(did, path) => {
84+
Visibility::Restricted { parent: did.into(), path: path.whole_name() }
85+
}
8486
}
8587
}
8688
}

0 commit comments

Comments
 (0)