diff options
| author | Josh Mcguigan <joshmcg88@gmail.com> | 2018-10-03 05:00:43 -0700 |
|---|---|---|
| committer | Josh Mcguigan <joshmcg88@gmail.com> | 2018-10-13 06:20:39 -0700 |
| commit | 2ef4af7db23c5522db2d71b60908b93127df5036 (patch) | |
| tree | 8e591c1b44951bc43b8d680a4a75a05d4f9b46cb | |
| parent | 1c4fa419f33211db3fa60f3bc8d59a8f42992558 (diff) | |
| download | rust-2ef4af7db23c5522db2d71b60908b93127df5036.tar.gz rust-2ef4af7db23c5522db2d71b60908b93127df5036.zip | |
Removed unused variables
| -rw-r--r-- | clippy_lints/src/methods/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs index 7426ece5ba9..c78bb48db2a 100644 --- a/clippy_lints/src/methods/mod.rs +++ b/clippy_lints/src/methods/mod.rs @@ -931,7 +931,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass { } } - 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) && |
