Skip to content

Commit 2c8d1ae

Browse files
authored
Fix out-of-date comment (rust-lang#14040)
This comment was left behind when the method receiver was split out from the method arguments in 4bcadde. changelog: none
2 parents 3254f02 + eff57e2 commit 2c8d1ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clippy_lints/src/methods/unnecessary_sort_by.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ fn mirrored_exprs(a_expr: &Expr<'_>, a_ident: &Ident, b_expr: &Expr<'_>, b_ident
4444
&& iter::zip(*left_args, *right_args).all(|(left, right)| mirrored_exprs(left, a_ident, right, b_ident))
4545
},
4646
// The two exprs are method calls.
47-
// Check to see that the function is the same and the arguments are mirrored
48-
// This is enough because the receiver of the method is listed in the arguments
47+
// Check to see that the function is the same and the arguments and receivers are mirrored
4948
(
5049
ExprKind::MethodCall(left_segment, left_receiver, left_args, _),
5150
ExprKind::MethodCall(right_segment, right_receiver, right_args, _),

0 commit comments

Comments
 (0)