1
Fork 0

Remove unneeded From trait impl for DefKind

This commit is contained in:
Guillaume Gomez 2021-02-03 00:46:48 +01:00
parent 3c8e13aff1
commit c92b161df0
2 changed files with 1 additions and 7 deletions

View file

@ -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()
}
}

View file

@ -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 {