about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustdoc/clean/mod.rs2
-rw-r--r--src/librustdoc/clean/types.rs6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 0815d779708..331bb2a73f9 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -1042,7 +1042,7 @@ impl Clean<PolyTrait> for hir::PolyTraitRef<'_> {
 
 impl Clean<TypeKind> for hir::def::DefKind {
     fn clean(&self, _: &DocContext<'_>) -> TypeKind {
-        self.into()
+        (*self).into()
     }
 }
 
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs
index 510eaa05406..754f1c2eeeb 100644
--- a/src/librustdoc/clean/types.rs
+++ b/src/librustdoc/clean/types.rs
@@ -1302,12 +1302,6 @@ crate enum TypeKind {
     Primitive,
 }
 
-impl<'a> From<&'a hir::def::DefKind> for TypeKind {
-    fn from(other: &hir::def::DefKind) -> Self {
-        Self::from(*other)
-    }
-}
-
 impl From<hir::def::DefKind> for TypeKind {
     fn from(other: hir::def::DefKind) -> Self {
         match other {