mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Removed unused variables
This commit is contained in:
parent
1c4fa419f3
commit
2ef4af7db2
1 changed files with 1 additions and 1 deletions
|
@ -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) &&
|
||||
|
|
Loading…
Reference in a new issue