]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/to_string_in_display.rs
modify code
[rust.git] / clippy_lints / src / to_string_in_display.rs
index f8b6bdcd3e15ed413e98e9530045fa5bc5e6fc2a..03060d78fc5af39d325068a721a991b9e96a7e83 100644 (file)
@@ -93,7 +93,7 @@ fn check_expr(&mut self, cx: &LateContext<'_>, expr: &Expr<'_>) {
         if_chain! {
             if self.in_display_impl;
             if let Some(self_hir_id) = self.self_hir_id;
-            if let ExprKind::MethodCall(path, _, [ref self_arg, ..], _) = expr.kind;
+            if let ExprKind::MethodCall(path, [ref self_arg, ..], _) = expr.kind;
             if path.ident.name == sym!(to_string);
             if let Some(expr_def_id) = cx.typeck_results().type_dependent_def_id(expr.hir_id);
             if is_diag_trait_item(cx, expr_def_id, sym::ToString);