Skip to content

Commit 482dc77

Browse files
formatting
1 parent 3094c37 commit 482dc77

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

src/librustdoc/clean/mod.rs

+19-21
Original file line numberDiff line numberDiff line change
@@ -2121,27 +2121,25 @@ impl Clean<Vec<Item>> for doctree::Impl<'_> {
21212121
Some(DefKind::TyAlias) => Some(cx.tcx.type_of(did).clean(cx)),
21222122
_ => None,
21232123
});
2124-
let make_item = |trait_: Option<Type>, for_: Type, items: Vec<Item>| {
2125-
Item {
2126-
name: None,
2127-
attrs: self.attrs.clean(cx),
2128-
source: self.whence.clean(cx),
2129-
def_id,
2130-
visibility: self.vis.clean(cx),
2131-
stability: cx.stability(self.id).clean(cx),
2132-
deprecation: cx.deprecation(self.id).clean(cx),
2133-
inner: ImplItem(Impl {
2134-
unsafety: self.unsafety,
2135-
generics: self.generics.clean(cx),
2136-
provided_trait_methods: provided.clone(),
2137-
trait_,
2138-
for_,
2139-
items,
2140-
polarity: Some(cx.tcx.impl_polarity(def_id).clean(cx)),
2141-
synthetic: false,
2142-
blanket_impl: None,
2143-
}),
2144-
}
2124+
let make_item = |trait_: Option<Type>, for_: Type, items: Vec<Item>| Item {
2125+
name: None,
2126+
attrs: self.attrs.clean(cx),
2127+
source: self.whence.clean(cx),
2128+
def_id,
2129+
visibility: self.vis.clean(cx),
2130+
stability: cx.stability(self.id).clean(cx),
2131+
deprecation: cx.deprecation(self.id).clean(cx),
2132+
inner: ImplItem(Impl {
2133+
unsafety: self.unsafety,
2134+
generics: self.generics.clean(cx),
2135+
provided_trait_methods: provided.clone(),
2136+
trait_,
2137+
for_,
2138+
items,
2139+
polarity: Some(cx.tcx.impl_polarity(def_id).clean(cx)),
2140+
synthetic: false,
2141+
blanket_impl: None,
2142+
}),
21452143
};
21462144
if let Some(type_alias) = type_alias {
21472145
ret.push(make_item(trait_.clone(), type_alias, items.clone()));

0 commit comments

Comments
 (0)