]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/disallowed_method.rs
update unused variable
[rust.git] / clippy_lints / src / disallowed_method.rs
index 7088b2718f20de465cf26af13498c4bbe195e282..5ecdcc0e08aa1d21051b2979a0eab39a2378355e 100644 (file)
@@ -51,7 +51,7 @@ pub fn new(disallowed: FxHashSet<String>) -> Self {
 
 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);