We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1479c18 commit 12e5637Copy full SHA for 12e5637
clippy_lints/src/disallowed_method.rs
@@ -51,7 +51,7 @@ impl_lint_pass!(DisallowedMethod => [DISALLOWED_METHOD]);
51
52
impl <'tcx> LateLintPass<'tcx> for DisallowedMethod {
53
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
54
- if let ExprKind::MethodCall(path, _, _args, _) = &expr.kind {
+ if let ExprKind::MethodCall(_path, _, _args, _) = &expr.kind {
55
let def_id = cx.typeck_results().type_dependent_def_id(expr.hir_id).unwrap();
56
57
let method_call = cx.get_def_path(def_id);
0 commit comments