Skip to content

Commit e8be047

Browse files
ThibsGebroto
andauthored
Update clippy_lints/src/utils/mod.rs
Co-authored-by: Eduardo Broto <[email protected]>
1 parent 5046126 commit e8be047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ pub fn return_ty<'tcx>(cx: &LateContext<'tcx>, fn_item: hir::HirId) -> Ty<'tcx>
868868
}
869869

870870
/// 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 {
871+
pub fn contains_ty(ty: Ty<'_>, other_ty: Ty<'_>) -> bool {
872872
ty.walk().any(|inner| match inner.unpack() {
873873
GenericArgKind::Type(inner_ty) => ty::TyS::same_type(other_ty, inner_ty),
874874
GenericArgKind::Lifetime(_) | GenericArgKind::Const(_) => false,

0 commit comments

Comments
 (0)