2020-04-14 10:45:00 -05:00
|
|
|
warning: unnecessary parentheses around function argument
|
2020-07-02 00:32:12 -05:00
|
|
|
--> $DIR/try-block-unused-delims.rs:11:13
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
|
LL | consume((try {}));
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2020-07-02 00:32:12 -05:00
|
|
|
--> $DIR/try-block-unused-delims.rs:6:9
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
|
LL | #![warn(unused_parens, unused_braces)]
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-09-09 09:22:24 -05:00
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - consume((try {}));
|
|
|
|
LL + consume(try {});
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
warning: unnecessary braces around function argument
|
2020-07-02 00:32:12 -05:00
|
|
|
--> $DIR/try-block-unused-delims.rs:14:13
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
|
LL | consume({ try {} });
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^^ ^^
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
2020-07-02 00:32:12 -05:00
|
|
|
--> $DIR/try-block-unused-delims.rs:6:24
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
|
LL | #![warn(unused_parens, unused_braces)]
|
|
|
|
| ^^^^^^^^^^^^^
|
2021-09-09 09:22:24 -05:00
|
|
|
help: remove these braces
|
|
|
|
|
|
|
|
|
LL - consume({ try {} });
|
|
|
|
LL + consume(try {});
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
warning: unnecessary parentheses around `match` scrutinee expression
|
2020-07-02 00:32:12 -05:00
|
|
|
--> $DIR/try-block-unused-delims.rs:17:11
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
|
LL | match (try {}) {
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - match (try {}) {
|
|
|
|
LL + match try {} {
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
warning: unnecessary parentheses around `let` scrutinee expression
|
2020-07-02 00:32:12 -05:00
|
|
|
--> $DIR/try-block-unused-delims.rs:22:22
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
|
LL | if let Err(()) = (try {}) {}
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - if let Err(()) = (try {}) {}
|
|
|
|
LL + if let Err(()) = try {} {}
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
warning: unnecessary parentheses around `match` scrutinee expression
|
2020-07-02 00:32:12 -05:00
|
|
|
--> $DIR/try-block-unused-delims.rs:25:11
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
|
LL | match (try {}) {
|
2021-09-09 09:22:24 -05:00
|
|
|
| ^ ^
|
|
|
|
|
|
|
|
|
help: remove these parentheses
|
|
|
|
|
|
|
|
|
LL - match (try {}) {
|
|
|
|
LL + match try {} {
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2020-04-14 10:45:00 -05:00
|
|
|
|
|
|
|
warning: 5 warnings emitted
|
|
|
|
|