We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c8e13a commit c92b161Copy full SHA for c92b161
src/librustdoc/clean/mod.rs
@@ -1042,7 +1042,7 @@ impl Clean<PolyTrait> for hir::PolyTraitRef<'_> {
1042
1043
impl Clean<TypeKind> for hir::def::DefKind {
1044
fn clean(&self, _: &DocContext<'_>) -> TypeKind {
1045
- self.into()
+ (*self).into()
1046
}
1047
1048
src/librustdoc/clean/types.rs
@@ -1302,12 +1302,6 @@ crate enum TypeKind {
1302
Primitive,
1303
1304
1305
-impl<'a> From<&'a hir::def::DefKind> for TypeKind {
1306
- fn from(other: &hir::def::DefKind) -> Self {
1307
- Self::from(*other)
1308
- }
1309
-}
1310
-
1311
impl From<hir::def::DefKind> for TypeKind {
1312
fn from(other: hir::def::DefKind) -> Self {
1313
match other {
0 commit comments