Fix clippy with latest Rust nightly.

This commit is contained in:
Robert Clipsham 2015-12-05 12:25:04 +00:00
parent dc414e6c02
commit 978c41584f
3 changed files with 3 additions and 2 deletions

View file

@ -62,7 +62,7 @@ fn check_decl(cx: &LateContext, decl: &Decl, bindings: &mut Vec<(Name, Span)>) {
if in_external_macro(cx, decl.span) { return; }
if is_from_for_desugar(decl) { return; }
if let DeclLocal(ref local) = decl.node {
let Local{ ref pat, ref ty, ref init, id: _, span } = **local;
let Local{ ref pat, ref ty, ref init, id: _, span, attrs: _ } = **local;
if let Some(ref t) = *ty { check_ty(cx, t, bindings) }
if let Some(ref o) = *init {
check_expr(cx, o, bindings);