Skip to content

Commit c3ff3da

Browse files
committed
Format
1 parent e10ad58 commit c3ff3da

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
@@ -308,8 +308,8 @@ impl ItemEnum {
308308
| MacroItem(_)
309309
| ProcMacroItem(_)
310310
| PrimitiveItem(_)
311-
| AssocConstItem(_,_)
312-
| AssocTypeItem(_,_)
311+
| AssocConstItem(_, _)
312+
| AssocTypeItem(_, _)
313313
| StrippedItem(_)
314314
| KeywordItem(_) => [].iter(),
315315
}

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)