]>
Commit | Line | Data |
---|---|---|
7cac9316 | 1 | warning: unnecessary parentheses around `return` value |
f035d41b | 2 | --> $DIR/path-lookahead.rs:10:12 |
7cac9316 | 3 | | |
f035d41b | 4 | LL | return (<T as ToString>::to_string(&arg)); |
c295e0f8 | 5 | | ^ ^ |
7cac9316 | 6 | | |
74b04a01 | 7 | note: the lint level is defined here |
f035d41b | 8 | --> $DIR/path-lookahead.rs:5:9 |
abe05a73 | 9 | | |
60c5eb7d XL |
10 | LL | #![warn(unused_parens)] |
11 | | ^^^^^^^^^^^^^ | |
c295e0f8 XL |
12 | help: remove these parentheses |
13 | | | |
14 | LL - return (<T as ToString>::to_string(&arg)); | |
15 | LL + return <T as ToString>::to_string(&arg); | |
923072b8 | 16 | | |
7cac9316 | 17 | |
ba9703b0 XL |
18 | warning: 1 warning emitted |
19 |