Skip to content

Commit 796779c

Browse files
committed
Swap the if let with if matches
1 parent 1d48ae0 commit 796779c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/unused_box.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl LateLintPass<'_> for UnusedBox {
4848
) {
4949
// it's unclear what part of a closure you would span, so for now it's ignored
5050
// if this is changed, please also make sure not to call `hir_ty_to_ty` below
51-
if let FnKind::Closure = fn_kind {
51+
if matches!(fn_kind, FnKind::Closure) {
5252
return;
5353
}
5454

0 commit comments

Comments
 (0)