mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Remove hir::Local::attrs.
This commit is contained in:
parent
3e721b1445
commit
acd6014b80
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ impl<'tcx> LateLintPass<'tcx> for Return {
|
|||
if let Some(stmt) = block.stmts.iter().last();
|
||||
if let StmtKind::Local(local) = &stmt.kind;
|
||||
if local.ty.is_none();
|
||||
if local.attrs.is_empty();
|
||||
if cx.tcx.hir().attrs(local.hir_id).is_empty();
|
||||
if let Some(initexpr) = &local.init;
|
||||
if let PatKind::Binding(.., ident, _) = local.pat.kind;
|
||||
if let ExprKind::Path(qpath) = &retexpr.kind;
|
||||
|
|
Loading…
Add table
Reference in a new issue