From f5b6a0c54da3c9f94ccd53fae77dbf58fa16e680 Mon Sep 17 00:00:00 2001 From: Philipp Krones Date: Tue, 7 Apr 2020 22:19:20 +0200 Subject: [PATCH] Format clippy_lints/src/let_underscore.rs --- clippy_lints/src/let_underscore.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/let_underscore.rs b/clippy_lints/src/let_underscore.rs index da83b1f3c..f8f84f3d4 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, });