We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5046126 commit e8be047Copy full SHA for e8be047
clippy_lints/src/utils/mod.rs
@@ -868,7 +868,7 @@ pub fn return_ty<'tcx>(cx: &LateContext<'tcx>, fn_item: hir::HirId) -> Ty<'tcx>
868
}
869
870
/// Walk into `ty` and returns `true` if any inner type is the same as `other_ty`
871
-pub fn contains_ty<'tcx>(ty: Ty<'tcx>, other_ty: Ty<'tcx>) -> bool {
+pub fn contains_ty(ty: Ty<'_>, other_ty: Ty<'_>) -> bool {
872
ty.walk().any(|inner| match inner.unpack() {
873
GenericArgKind::Type(inner_ty) => ty::TyS::same_type(other_ty, inner_ty),
874
GenericArgKind::Lifetime(_) | GenericArgKind::Const(_) => false,
0 commit comments