diff options
| author | Ellen <supbscripter@gmail.com> | 2022-01-12 03:19:52 +0000 |
|---|---|---|
| committer | Ellen <supbscripter@gmail.com> | 2022-01-15 01:16:55 +0000 |
| commit | 377870a136330e82f2e63e4a62ee05c64cbce82e (patch) | |
| tree | 873aeb2006d71dd95400f8fc3ceeaecd1bbb1944 /clippy_lints/src/let_underscore.rs | |
| parent | d7024acb3287d4dbde9f49c2e0c8c44c59fe365f (diff) | |
initial revert
Diffstat (limited to 'clippy_lints/src/let_underscore.rs')
| -rw-r--r-- | clippy_lints/src/let_underscore.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/let_underscore.rs b/clippy_lints/src/let_underscore.rs index d03276f7f98..cb1ef01f5ba 100644 --- a/clippy_lints/src/let_underscore.rs +++ b/clippy_lints/src/let_underscore.rs @@ -124,7 +124,7 @@ impl<'tcx> LateLintPass<'tcx> for LetUnderscore { if let Some(init) = local.init; then { let init_ty = cx.typeck_results().expr_ty(init); - let contains_sync_guard = init_ty.walk(cx.tcx).any(|inner| match inner.unpack() { + let contains_sync_guard = init_ty.walk().any(|inner| match inner.unpack() { GenericArgKind::Type(inner_ty) => { SYNC_GUARD_PATHS.iter().any(|path| match_type(cx, inner_ty, path)) }, |
