Skip to content

Commit f5b6a0c

Browse files
authored
Format clippy_lints/src/let_underscore.rs
1 parent 2ad4d6a commit f5b6a0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

clippy_lints/src/let_underscore.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for LetUnderscore {
7878
then {
7979
let init_ty = cx.tables.expr_ty(init);
8080
let contains_sync_guard = init_ty.walk().any(|inner| match inner.unpack() {
81-
GenericArgKind::Type(inner_ty) => SYNC_GUARD_PATHS.iter().any(|path| match_type(cx, inner_ty, path)),
81+
GenericArgKind::Type(inner_ty) => {
82+
SYNC_GUARD_PATHS.iter().any(|path| match_type(cx, inner_ty, path))
83+
},
8284

8385
GenericArgKind::Lifetime(_) | GenericArgKind::Const(_) => false,
8486
});

0 commit comments

Comments
 (0)