Skip to content

Commit 2ef4af7

Browse files
committed
Removed unused variables
1 parent 1c4fa41 commit 2ef4af7

File tree

1 file changed

+1
-1
lines changed
  • clippy_lints/src/methods

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
931931
}
932932
}
933933

934-
if let hir::ImplItemKind::Method(ref sig, id) = implitem.node {
934+
if let hir::ImplItemKind::Method(_, _) = implitem.node {
935935
let ret_ty = return_ty(cx, implitem.id);
936936
if name == "new" &&
937937
!same_tys(cx, ret_ty, ty) &&

0 commit comments

Comments
 (0)