about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2020-04-07 22:19:20 +0200
committerGitHub <noreply@github.com>2020-04-07 22:19:20 +0200
commitf5b6a0c54da3c9f94ccd53fae77dbf58fa16e680 (patch)
treeeef5f1d93b725bc7cf40d661e9c4f4cf2e2e7e59
parent2ad4d6a057e17c727ab007faed346d83fc1f33d3 (diff)
downloadrust-f5b6a0c54da3c9f94ccd53fae77dbf58fa16e680.tar.gz
rust-f5b6a0c54da3c9f94ccd53fae77dbf58fa16e680.zip
Format clippy_lints/src/let_underscore.rs
-rw-r--r--clippy_lints/src/let_underscore.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/clippy_lints/src/let_underscore.rs b/clippy_lints/src/let_underscore.rs
index da83b1f3ce6..f8f84f3d42d 100644
--- a/clippy_lints/src/let_underscore.rs
+++ b/clippy_lints/src/let_underscore.rs
@@ -78,7 +78,9 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LetUnderscore {
             then {
                 let init_ty = cx.tables.expr_ty(init);
                 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)),
+                    GenericArgKind::Type(inner_ty) => {
+                        SYNC_GUARD_PATHS.iter().any(|path| match_type(cx, inner_ty, path))
+                    },
 
                     GenericArgKind::Lifetime(_) | GenericArgKind::Const(_) => false,
                 });