Skip to content

Commit bcfa2f7

Browse files
Update comment of clippy_lints/src/unwrap.rs
Co-authored-by: Samuel Tardieu <[email protected]>
1 parent 3d8b130 commit bcfa2f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/unwrap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ impl<'tcx> Visitor<'tcx> for UnwrappableVariablesVisitor<'_, 'tcx> {
292292
if expr.span.in_external_macro(self.cx.tcx.sess.source_map()) {
293293
return;
294294
}
295-
// Skip checking all expressions inside closures
295+
// Skip checking inside closures since they are visited through `Unwrap::check_fn()` already.
296296
if matches!(expr.kind, ExprKind::Closure(_)) {
297297
return;
298298
}

0 commit comments

Comments
 (0)