Skip to content

Commit 9dd59dd

Browse files
Remove Clean trait implementation for hir::TypeBinding
1 parent 279af1d commit 9dd59dd

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/librustdoc/clean/mod.rs

+9-7
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,8 @@ impl<'tcx> Clean<'tcx, GenericArgs> for hir::GenericArgs<'tcx> {
18841884
})
18851885
.collect::<Vec<_>>()
18861886
.into();
1887-
let bindings = self.bindings.iter().map(|x| x.clean(cx)).collect::<Vec<_>>().into();
1887+
let bindings =
1888+
self.bindings.iter().map(|x| clean_type_binding(x, cx)).collect::<Vec<_>>().into();
18881889
GenericArgs::AngleBracketed { args, bindings }
18891890
}
18901891
}
@@ -2250,12 +2251,13 @@ fn clean_maybe_renamed_foreign_item<'tcx>(
22502251
})
22512252
}
22522253

2253-
impl<'tcx> Clean<'tcx, TypeBinding> for hir::TypeBinding<'tcx> {
2254-
fn clean(&self, cx: &mut DocContext<'tcx>) -> TypeBinding {
2255-
TypeBinding {
2256-
assoc: PathSegment { name: self.ident.name, args: self.gen_args.clean(cx) },
2257-
kind: self.kind.clean(cx),
2258-
}
2254+
fn clean_type_binding<'tcx>(
2255+
type_binding: &hir::TypeBinding<'tcx>,
2256+
cx: &mut DocContext<'tcx>,
2257+
) -> TypeBinding {
2258+
TypeBinding {
2259+
assoc: PathSegment { name: type_binding.ident.name, args: type_binding.gen_args.clean(cx) },
2260+
kind: type_binding.kind.clean(cx),
22592261
}
22602262
}
22612263

0 commit comments

Comments
 (0)