about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStackOverflowExcept1on <109800286+StackOverflowExcept1on@users.noreply.github.com>2023-12-15 23:02:13 +0300
committerStackOverflowExcept1on <109800286+StackOverflowExcept1on@users.noreply.github.com>2023-12-15 23:02:13 +0300
commit90ece568d3ec1fb0273db452ce4b65c6bbc9c055 (patch)
tree87ed1927e940ab8507b9baa5546482c1cf686e3a
parent058b74fce4f34f4ace7d7b02fb938c6b1dc9c531 (diff)
downloadrust-90ece568d3ec1fb0273db452ce4b65c6bbc9c055.tar.gz
rust-90ece568d3ec1fb0273db452ce4b65c6bbc9c055.zip
simplify pattern
-rw-r--r--clippy_lints/src/assertions_on_constants.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/assertions_on_constants.rs b/clippy_lints/src/assertions_on_constants.rs
index 11d614afaf8..1e327f7a6df 100644
--- a/clippy_lints/src/assertions_on_constants.rs
+++ b/clippy_lints/src/assertions_on_constants.rs
@@ -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
         {