diff options
| author | Thibaud <ThibsG@users.noreply.github.com> | 2020-08-28 09:31:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-28 09:31:29 +0200 |
| commit | ffaadae8e48699f115eafd2853c252f546a69a28 (patch) | |
| tree | 4cf202ed748f100341b16e525519d6298fd516db | |
| parent | e8be047c5b2d5b1522a16b4b52cc7acfa4581ca3 (diff) | |
| download | rust-ffaadae8e48699f115eafd2853c252f546a69a28.tar.gz rust-ffaadae8e48699f115eafd2853c252f546a69a28.zip | |
Update clippy_lints/src/utils/mod.rs
Co-authored-by: Eduardo Broto <ebroto@tutanota.com>
| -rw-r--r-- | clippy_lints/src/utils/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs index d9598c4abbd..82005257115 100644 --- a/clippy_lints/src/utils/mod.rs +++ b/clippy_lints/src/utils/mod.rs @@ -867,7 +867,7 @@ pub fn return_ty<'tcx>(cx: &LateContext<'tcx>, fn_item: hir::HirId) -> Ty<'tcx> cx.tcx.erase_late_bound_regions(&ret_ty) } -/// Walk into `ty` and returns `true` if any inner type is the same as `other_ty` +/// Walks into `ty` and returns `true` if any inner type is the same as `other_ty` pub fn contains_ty(ty: Ty<'_>, other_ty: Ty<'_>) -> bool { ty.walk().any(|inner| match inner.unpack() { GenericArgKind::Type(inner_ty) => ty::TyS::same_type(other_ty, inner_ty), |
