fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: unnecessary parentheses around function argument 2 --> $DIR/try-block-unused-delims.rs:11:13 3 | 4LL | consume((try {})); 5 | ^ ^ 6 | 7note: the lint level is defined here 8 --> $DIR/try-block-unused-delims.rs:6:9 9 | 10LL | #![warn(unused_parens, unused_braces)] 11 | ^^^^^^^^^^^^^ 12help: remove these parentheses 13 | 14LL - consume((try {})); 15LL + consume(try {}); 16 | 17 18warning: unnecessary braces around function argument 19 --> $DIR/try-block-unused-delims.rs:14:13 20 | 21LL | consume({ try {} }); 22 | ^^ ^^ 23 | 24note: the lint level is defined here 25 --> $DIR/try-block-unused-delims.rs:6:24 26 | 27LL | #![warn(unused_parens, unused_braces)] 28 | ^^^^^^^^^^^^^ 29help: remove these braces 30 | 31LL - consume({ try {} }); 32LL + consume(try {}); 33 | 34 35warning: unnecessary parentheses around `match` scrutinee expression 36 --> $DIR/try-block-unused-delims.rs:17:11 37 | 38LL | match (try {}) { 39 | ^ ^ 40 | 41help: remove these parentheses 42 | 43LL - match (try {}) { 44LL + match try {} { 45 | 46 47warning: unnecessary parentheses around `let` scrutinee expression 48 --> $DIR/try-block-unused-delims.rs:22:22 49 | 50LL | if let Err(()) = (try {}) {} 51 | ^ ^ 52 | 53help: remove these parentheses 54 | 55LL - if let Err(()) = (try {}) {} 56LL + if let Err(()) = try {} {} 57 | 58 59warning: unnecessary parentheses around `match` scrutinee expression 60 --> $DIR/try-block-unused-delims.rs:25:11 61 | 62LL | match (try {}) { 63 | ^ ^ 64 | 65help: remove these parentheses 66 | 67LL - match (try {}) { 68LL + match try {} { 69 | 70 71warning: 5 warnings emitted 72