Remove unneeded From trait impl for DefKind
This commit is contained in:
parent
3c8e13aff1
commit
c92b161df0
2 changed files with 1 additions and 7 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue