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.
2 parents af5b6e8 + b283ea3 commit 10ec6fcCopy full SHA for 10ec6fc
clippy_lints/src/methods/unnecessary_to_owned.rs
@@ -44,7 +44,7 @@ pub fn check<'tcx>(
44
return;
45
}
46
// At this point, we know the call is of a `to_owned`-like function. The functions
47
- // `check_addr_of_expr` and `check_call_arg` determine whether the call is unnecessary
+ // `check_addr_of_expr` and `check_into_iter_call_arg` determine whether the call is unnecessary
48
// based on its context, that is, whether it is a referent in an `AddrOf` expression, an
49
// argument in a `into_iter` call, or an argument in the call of some other function.
50
if check_addr_of_expr(cx, expr, method_name, method_def_id, receiver) {
0 commit comments