Skip to content

Commit 1009bf0

Browse files
smoeliuscamsteffen
andcommitted
Update clippy_lints/src/format_args.rs
Co-authored-by: Cameron Steffen <cam.steffen94@gmail.com>
1 parent 6a0a073 commit 1009bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/format_args.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fn check_to_string_in_format_args<'tcx>(
117117
) {
118118
let value = arg.value;
119119
if_chain! {
120-
if let ExprKind::MethodCall(_, _, args, _) = value.kind;
120+
if let ExprKind::MethodCall(_, _, [receiver], span) = value.kind;
121121
if let Some(method_def_id) = cx.typeck_results().type_dependent_def_id(value.hir_id);
122122
if match_def_path(cx, method_def_id, &paths::TO_STRING_METHOD);
123123
if let Some(receiver) = args.get(0);

0 commit comments

Comments
 (0)