mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
20 lines
506 B
Plaintext
20 lines
506 B
Plaintext
warning: unnecessary parentheses around `return` value
|
|
--> $DIR/path-lookahead.rs:10:12
|
|
|
|
|
LL | return (<T as ToString>::to_string(&arg));
|
|
| ^ ^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/path-lookahead.rs:5:9
|
|
|
|
|
LL | #![warn(unused_parens)]
|
|
| ^^^^^^^^^^^^^
|
|
help: remove these parentheses
|
|
|
|
|
LL - return (<T as ToString>::to_string(&arg));
|
|
LL + return <T as ToString>::to_string(&arg);
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|