]> git.lizzy.rs Git - rust.git/commitdiff
Removed unused variables
authorJosh Mcguigan <joshmcg88@gmail.com>
Wed, 3 Oct 2018 12:00:43 +0000 (05:00 -0700)
committerJosh Mcguigan <joshmcg88@gmail.com>
Sat, 13 Oct 2018 13:20:39 +0000 (06:20 -0700)
clippy_lints/src/methods/mod.rs

index 7426ece5ba95e8ddf0140f3469c7091bac5fa806..c78bb48db2af22d37c5cbe0f9c432b7d04df2975 100644 (file)
@@ -931,7 +931,7 @@ fn check_impl_item(&mut self, cx: &LateContext<'a, 'tcx>, implitem: &'tcx hir::I
             }
         }
 
-        if let hir::ImplItemKind::Method(ref sig, id) = implitem.node {
+        if let hir::ImplItemKind::Method(_, _) = implitem.node {
             let ret_ty = return_ty(cx, implitem.id);
             if name == "new" &&
                 !same_tys(cx, ret_ty, ty) &&