@@ -2,75 +2,75 @@ error: question mark operator is useless here
22 --> $DIR/needless_question_mark.rs:23:12
33 |
44LL | return Some(to.magic?);
5- | ^^^^^^^^^^^^^^^ help: try: `to.magic`
5+ | ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()` : `to.magic`
66 |
77 = note: `-D clippy::needless-question-mark` implied by `-D warnings`
88
99error: question mark operator is useless here
1010 --> $DIR/needless_question_mark.rs:31:12
1111 |
1212LL | return Some(to.magic?)
13- | ^^^^^^^^^^^^^^^ help: try: `to.magic`
13+ | ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()` : `to.magic`
1414
1515error: question mark operator is useless here
1616 --> $DIR/needless_question_mark.rs:36:5
1717 |
1818LL | Some(to.magic?)
19- | ^^^^^^^^^^^^^^^ help: try: `to.magic`
19+ | ^^^^^^^^^^^^^^^ help: try removing question mark and `Some()` : `to.magic`
2020
2121error: question mark operator is useless here
2222 --> $DIR/needless_question_mark.rs:41:21
2323 |
2424LL | to.and_then(|t| Some(t.magic?))
25- | ^^^^^^^^^^^^^^ help: try: `t.magic`
25+ | ^^^^^^^^^^^^^^ help: try removing question mark and `Some()` : `t.magic`
2626
2727error: question mark operator is useless here
2828 --> $DIR/needless_question_mark.rs:50:9
2929 |
3030LL | Some(t.magic?)
31- | ^^^^^^^^^^^^^^ help: try: `t.magic`
31+ | ^^^^^^^^^^^^^^ help: try removing question mark and `Some()` : `t.magic`
3232
3333error: question mark operator is useless here
3434 --> $DIR/needless_question_mark.rs:55:12
3535 |
3636LL | return Ok(tr.magic?);
37- | ^^^^^^^^^^^^^ help: try: `tr.magic`
37+ | ^^^^^^^^^^^^^ help: try removing question mark and `Ok()` : `tr.magic`
3838
3939error: question mark operator is useless here
4040 --> $DIR/needless_question_mark.rs:62:12
4141 |
4242LL | return Ok(tr.magic?)
43- | ^^^^^^^^^^^^^ help: try: `tr.magic`
43+ | ^^^^^^^^^^^^^ help: try removing question mark and `Ok()` : `tr.magic`
4444
4545error: question mark operator is useless here
4646 --> $DIR/needless_question_mark.rs:66:5
4747 |
4848LL | Ok(tr.magic?)
49- | ^^^^^^^^^^^^^ help: try: `tr.magic`
49+ | ^^^^^^^^^^^^^ help: try removing question mark and `Ok()` : `tr.magic`
5050
5151error: question mark operator is useless here
5252 --> $DIR/needless_question_mark.rs:70:21
5353 |
5454LL | tr.and_then(|t| Ok(t.magic?))
55- | ^^^^^^^^^^^^ help: try: `t.magic`
55+ | ^^^^^^^^^^^^ help: try removing question mark and `Ok()` : `t.magic`
5656
5757error: question mark operator is useless here
5858 --> $DIR/needless_question_mark.rs:78:9
5959 |
6060LL | Ok(t.magic?)
61- | ^^^^^^^^^^^^ help: try: `t.magic`
61+ | ^^^^^^^^^^^^ help: try removing question mark and `Ok()` : `t.magic`
6262
6363error: question mark operator is useless here
6464 --> $DIR/needless_question_mark.rs:85:16
6565 |
6666LL | return Ok(t.magic?);
67- | ^^^^^^^^^^^^ help: try: `t.magic`
67+ | ^^^^^^^^^^^^ help: try removing question mark and `Ok()` : `t.magic`
6868
6969error: question mark operator is useless here
7070 --> $DIR/needless_question_mark.rs:120:27
7171 |
7272LL | || -> Option<_> { Some(Some($expr)?) }()
73- | ^^^^^^^^^^^^^^^^^^ help: try: `Some($expr)`
73+ | ^^^^^^^^^^^^^^^^^^ help: try removing question mark and `Some()` : `Some($expr)`
7474...
7575LL | let _x = some_and_qmark_in_macro!(x?);
7676 | ---------------------------- in this macro invocation
0 commit comments