rust-analyzer guided enum variant structification
This commit is contained in:
@@ -805,7 +805,7 @@ trait UnusedDelimLint {
|
||||
fn check_item(&mut self, cx: &EarlyContext<'_>, item: &ast::Item) {
|
||||
use ast::ItemKind::*;
|
||||
|
||||
if let Const(.., Some(expr)) | Static(.., Some(expr)) = &item.kind {
|
||||
if let Const(.., Some(expr)) | Static(ast::Static(.., Some(expr))) = &item.kind {
|
||||
self.check_unused_delims_expr(
|
||||
cx,
|
||||
expr,
|
||||
|
||||
Reference in New Issue
Block a user