simplify pattern

This commit is contained in:
StackOverflowExcept1on 2023-12-15 23:02:13 +03:00
parent 058b74fce4
commit 90ece568d3
No known key found for this signature in database
GPG Key ID: 878715DC338535BE

View File

@ -48,7 +48,7 @@ impl<'tcx> LateLintPass<'tcx> for AssertionsOnConstants {
if let ConstantSource::Constant = source
&& let Some(node) = cx.tcx.hir().find_parent(e.hir_id)
&& let Node::Item(Item {
kind: ItemKind::Const(.., _body_id),
kind: ItemKind::Const(..),
..
}) = node
{