clean tests/ui/ok_if_let.rs

Cleaning the empty lines for clarity.
This commit is contained in:
Luis de Bethencourt 2017-05-11 15:30:21 +01:00
parent c9190f681d
commit 69139facb2
2 changed files with 4 additions and 6 deletions

View File

@ -5,7 +5,6 @@
fn str_to_int(x: &str) -> i32 {
if let Some(y) = x.parse().ok() {
y
} else {
0

View File

@ -2,11 +2,10 @@ error: Matching on `Some` with `ok()` is redundant
--> $DIR/ok_if_let.rs:7:5
|
7 | / if let Some(y) = x.parse().ok() {
8 | |
9 | | y
10 | | } else {
11 | | 0
12 | | }
8 | | y
9 | | } else {
10 | | 0
11 | | }
| |_____^
|
note: lint level defined here