Skip to content

Commit fc1c858

Browse files
Remove Clean trait implementation for hir::TypeBindingKind
1 parent 9dd59dd commit fc1c858

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/librustdoc/clean/mod.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -2257,19 +2257,13 @@ fn clean_type_binding<'tcx>(
22572257
) -> TypeBinding {
22582258
TypeBinding {
22592259
assoc: PathSegment { name: type_binding.ident.name, args: type_binding.gen_args.clean(cx) },
2260-
kind: type_binding.kind.clean(cx),
2261-
}
2262-
}
2263-
2264-
impl<'tcx> Clean<'tcx, TypeBindingKind> for hir::TypeBindingKind<'tcx> {
2265-
fn clean(&self, cx: &mut DocContext<'tcx>) -> TypeBindingKind {
2266-
match *self {
2260+
kind: match type_binding.kind {
22672261
hir::TypeBindingKind::Equality { ref term } => {
22682262
TypeBindingKind::Equality { term: clean_hir_term(term, cx) }
22692263
}
22702264
hir::TypeBindingKind::Constraint { bounds } => TypeBindingKind::Constraint {
22712265
bounds: bounds.iter().filter_map(|b| b.clean(cx)).collect(),
22722266
},
2273-
}
2267+
},
22742268
}
22752269
}

0 commit comments

Comments
 (0)