NFC: do not clone types that are copy

This commit is contained in:
Matthias Krüger
2023-12-15 23:19:51 +01:00
parent a96d57bdb6
commit 74d81d15b4
5 changed files with 6 additions and 6 deletions

View File

@@ -473,7 +473,7 @@ impl<'tcx> IntoKind for Ty<'tcx> {
type Kind = TyKind<'tcx>;
fn kind(self) -> TyKind<'tcx> {
self.kind().clone()
*self.kind()
}
}