Avoid trailing commas
This commit is contained in:
parent
fb61f5d781
commit
287cd5974c
3 changed files with 12 additions and 12 deletions
|
|
@ -65,7 +65,7 @@ LL | fn one_arg(_a: i32) {}
|
|||
help: remove the extra arguments
|
||||
|
|
||||
LL - one_arg(1, "", 1.0);
|
||||
LL + one_arg(1, );
|
||||
LL + one_arg(1);
|
||||
|
|
||||
|
||||
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
|
||||
|
|
@ -171,7 +171,7 @@ LL | fn two_arg_diff(_a: i32, _b: &str) {}
|
|||
help: remove the extra arguments
|
||||
|
|
||||
LL - two_arg_diff(1, "", 1, "");
|
||||
LL + two_arg_diff(1, "", );
|
||||
LL + two_arg_diff(1, "");
|
||||
|
|
||||
|
||||
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
|
||||
|
|
@ -205,7 +205,7 @@ LL | fn two_arg_diff(_a: i32, _b: &str) {}
|
|||
help: remove the extra argument
|
||||
|
|
||||
LL - two_arg_diff(1, 1, "");
|
||||
LL + two_arg_diff(1, "");
|
||||
LL + two_arg_diff(1, "");
|
||||
|
|
||||
|
||||
error[E0061]: this function takes 2 arguments but 3 arguments were supplied
|
||||
|
|
@ -245,7 +245,7 @@ LL | fn two_arg_diff(_a: i32, _b: &str) {}
|
|||
help: remove the extra argument
|
||||
|
|
||||
LL - 1,
|
||||
LL + ""
|
||||
LL + 1,
|
||||
|
|
||||
|
||||
error: aborting due to 14 previous errors
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ note: tuple variant defined here
|
|||
help: remove the extra arguments
|
||||
|
|
||||
LL - let _ = Ok(3, 6, 2);
|
||||
LL + let _ = Ok(3, );
|
||||
LL + let _ = Ok(3);
|
||||
|
|
||||
|
||||
error[E0061]: this enum variant takes 1 argument but 0 arguments were supplied
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue