Skip to content

Commit 90ece56

Browse files
simplify pattern
1 parent 058b74f commit 90ece56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/assertions_on_constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl<'tcx> LateLintPass<'tcx> for AssertionsOnConstants {
4848
if let ConstantSource::Constant = source
4949
&& let Some(node) = cx.tcx.hir().find_parent(e.hir_id)
5050
&& let Node::Item(Item {
51-
kind: ItemKind::Const(.., _body_id),
51+
kind: ItemKind::Const(..),
5252
..
5353
}) = node
5454
{

0 commit comments

Comments
 (0)