simplify pattern
This commit is contained in:
parent
058b74fce4
commit
90ece568d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue