diff options
| author | Frank <lifrank@grinnell.edu> | 2020-09-24 15:36:38 -0500 |
|---|---|---|
| committer | Frank <lifrank@grinnell.edu> | 2020-09-25 11:09:04 -0500 |
| commit | 12e5637f757f4fd4cc2331619ebeca59934a910d (patch) | |
| tree | 67c38ae8b17a6fd492b5a885bf5d30ca7de8f951 | |
| parent | 1479c18396d764482aa0e56b372c5f57a97c102b (diff) | |
| download | rust-12e5637f757f4fd4cc2331619ebeca59934a910d.tar.gz rust-12e5637f757f4fd4cc2331619ebeca59934a910d.zip | |
update unused variable
| -rw-r--r-- | clippy_lints/src/disallowed_method.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/disallowed_method.rs b/clippy_lints/src/disallowed_method.rs index 7088b2718f2..5ecdcc0e08a 100644 --- a/clippy_lints/src/disallowed_method.rs +++ b/clippy_lints/src/disallowed_method.rs @@ -51,7 +51,7 @@ impl_lint_pass!(DisallowedMethod => [DISALLOWED_METHOD]); impl <'tcx> LateLintPass<'tcx> for DisallowedMethod { fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) { - if let ExprKind::MethodCall(path, _, _args, _) = &expr.kind { + if let ExprKind::MethodCall(_path, _, _args, _) = &expr.kind { let def_id = cx.typeck_results().type_dependent_def_id(expr.hir_id).unwrap(); let method_call = cx.get_def_path(def_id); |
