We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d48ae0 commit 796779cCopy full SHA for 796779c
clippy_lints/src/unused_box.rs
@@ -48,7 +48,7 @@ impl LateLintPass<'_> for UnusedBox {
48
) {
49
// it's unclear what part of a closure you would span, so for now it's ignored
50
// if this is changed, please also make sure not to call `hir_ty_to_ty` below
51
- if let FnKind::Closure = fn_kind {
+ if matches!(fn_kind, FnKind::Closure) {
52
return;
53
}
54
0 commit comments