Skip to content

Commit

Permalink
Committed expected linting output
Browse files Browse the repository at this point in the history
  • Loading branch information
bengsparks committed Dec 26, 2020
1 parent 08bfa12 commit 1ae0b93
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions tests/ui/needless_question_mark.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
error: Question mark operator is useless here
--> $DIR/needless_question_mark.rs:13:12
|
LL | return Some(to.magic?);
| ^^^^^^^^^^^^^^^ help: try: `to.magic`
|
= note: `-D clippy::needless-question-mark` implied by `-D warnings`

error: Question mark operator is useless here
--> $DIR/needless_question_mark.rs:18:12
|
LL | return Some(to.magic?)
| ^^^^^^^^^^^^^^^ help: try: `to.magic`

error: Question mark operator is useless here
--> $DIR/needless_question_mark.rs:23:5
|
LL | Some(to.magic?)
| ^^^^^^^^^^^^^^^ help: try: `to.magic`

error: Question mark operator is useless here
--> $DIR/needless_question_mark.rs:28:21
|
LL | to.and_then(|t| Some(t.magic?))
| ^^^^^^^^^^^^^^ help: try: `t.magic`

error: Question mark operator is useless here
--> $DIR/needless_question_mark.rs:33:23
|
LL | to.and_then(|t| { Some(t.magic?) })
| ^^^^^^^^^^^^^^ help: try: `t.magic`

error: Question mark operator is useless here
--> $DIR/needless_question_mark.rs:37:12
|
LL | return Ok(tr.magic?);
| ^^^^^^^^^^^^^ help: try: `tr.magic`

error: Question mark operator is useless here
--> $DIR/needless_question_mark.rs:41:12
|
LL | return Ok(tr.magic?);
| ^^^^^^^^^^^^^ help: try: `tr.magic`

error: Question mark operator is useless here
--> $DIR/needless_question_mark.rs:45:5
|
LL | Ok(tr.magic?)
| ^^^^^^^^^^^^^ help: try: `tr.magic`

error: Question mark operator is useless here
--> $DIR/needless_question_mark.rs:49:21
|
LL | tr.and_then(|t| Ok(t.magic?))
| ^^^^^^^^^^^^ help: try: `t.magic`

error: Question mark operator is useless here
--> $DIR/needless_question_mark.rs:53:23
|
LL | tr.and_then(|t| { Ok(t.magic?) })
| ^^^^^^^^^^^^ help: try: `t.magic`

error: aborting due to 10 previous errors

0 comments on commit 1ae0b93

Please sign in to comment.