Do not consider method call receiver as an argument in AST.
This commit is contained in:
@@ -608,8 +608,7 @@ trait UnusedDelimLint {
|
||||
ref call_or_other => {
|
||||
let (args_to_check, ctx) = match *call_or_other {
|
||||
Call(_, ref args) => (&args[..], UnusedDelimsCtx::FunctionArg),
|
||||
// first "argument" is self (which sometimes needs delims)
|
||||
MethodCall(_, ref args, _) => (&args[1..], UnusedDelimsCtx::MethodArg),
|
||||
MethodCall(_, _, ref args, _) => (&args[..], UnusedDelimsCtx::MethodArg),
|
||||
// actual catch-all arm
|
||||
_ => {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user