Skip to content

Commit 12e5637

Browse files
author
Frank
committed
update unused variable
1 parent 1479c18 commit 12e5637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/disallowed_method.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl_lint_pass!(DisallowedMethod => [DISALLOWED_METHOD]);
5151

5252
impl <'tcx> LateLintPass<'tcx> for DisallowedMethod {
5353
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
54-
if let ExprKind::MethodCall(path, _, _args, _) = &expr.kind {
54+
if let ExprKind::MethodCall(_path, _, _args, _) = &expr.kind {
5555
let def_id = cx.typeck_results().type_dependent_def_id(expr.hir_id).unwrap();
5656

5757
let method_call = cx.get_def_path(def_id);

0 commit comments

Comments
 (0)