mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-02 17:40:13 +00:00
15 lines
418 B
Text
15 lines
418 B
Text
error: returning the result of a let binding from a block. Consider returning the expression directly.
|
|
--> $DIR/matches.rs:19:13
|
|
|
|
|
19 | x
|
|
| ^
|
|
|
|
|
= note: `-D clippy::let-and-return` implied by `-D warnings`
|
|
note: this expression can be directly returned
|
|
--> $DIR/matches.rs:18:21
|
|
|
|
|
18 | let x = 3;
|
|
| ^
|
|
|
|
error: aborting due to previous error
|
|
|