Skip to content

Commit

Permalink
clean tests/ui/ok_if_let.rs
Browse files Browse the repository at this point in the history
Cleaning the empty lines for clarity.
  • Loading branch information
luisbg committed May 11, 2017
1 parent c9190f6 commit 69139fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion tests/ui/ok_if_let.rs
Expand Up @@ -5,7 +5,6 @@

fn str_to_int(x: &str) -> i32 {
if let Some(y) = x.parse().ok() {

y
} else {
0
Expand Down
9 changes: 4 additions & 5 deletions tests/ui/ok_if_let.stderr
Expand Up @@ -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
Expand Down

0 comments on commit 69139fa

Please sign in to comment.