2020-12-26 17:02:46 +00:00
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:23:12
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
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
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:31:12
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | return Some(to.magic?)
|
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `to.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:36:5
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | Some(to.magic?)
|
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `to.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:41:21
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | to.and_then(|t| Some(t.magic?))
|
|
|
|
| ^^^^^^^^^^^^^^ help: try: `t.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:50:9
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | Some(t.magic?)
|
|
|
|
| ^^^^^^^^^^^^^^ help: try: `t.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:55:12
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | return Ok(tr.magic?);
|
|
|
|
| ^^^^^^^^^^^^^ help: try: `tr.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:62:12
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | return Ok(tr.magic?)
|
|
|
|
| ^^^^^^^^^^^^^ help: try: `tr.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:66:5
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | Ok(tr.magic?)
|
|
|
|
| ^^^^^^^^^^^^^ help: try: `tr.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:70:21
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | tr.and_then(|t| Ok(t.magic?))
|
|
|
|
| ^^^^^^^^^^^^ help: try: `t.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:78:9
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | Ok(t.magic?)
|
|
|
|
| ^^^^^^^^^^^^ help: try: `t.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:85:16
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | return Ok(t.magic?);
|
|
|
|
| ^^^^^^^^^^^^ help: try: `t.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:138:9
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | Ok(to.magic?) // should be triggered
|
|
|
|
| ^^^^^^^^^^^^^ help: try: `to.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:154:9
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | Some(to.magic?) // should be triggered
|
|
|
|
| ^^^^^^^^^^^^^^^ help: try: `to.magic`
|
|
|
|
|
|
|
|
error: Question mark operator is useless here
|
2020-12-19 13:50:45 +00:00
|
|
|
--> $DIR/needless_question_mark.rs:162:9
|
2020-12-26 17:02:46 +00:00
|
|
|
|
|
|
|
|
LL | Ok(to.magic?) // should be triggered
|
|
|
|
| ^^^^^^^^^^^^^ help: try: `to.magic`
|
|
|
|
|
|
|
|
error: aborting due to 14 previous errors
|
|
|
|
|