@@ -9,54 +9,54 @@ error: this block may be rewritten with the `?` operator
99 = note: `-D clippy::question-mark` implied by `-D warnings`
1010
1111error: this block may be rewritten with the `?` operator
12- --> $DIR/question_mark.rs:47 :9
12+ --> $DIR/question_mark.rs:56 :9
1313 |
14- 47 | / if (self.opt).is_none() {
15- 48 | | return None;
16- 49 | | }
14+ 56 | / if (self.opt).is_none() {
15+ 57 | | return None;
16+ 58 | | }
1717 | |_________^ help: replace_it_with: `(self.opt)?;`
1818
1919error: this block may be rewritten with the `?` operator
20- --> $DIR/question_mark.rs:51 :9
20+ --> $DIR/question_mark.rs:60 :9
2121 |
22- 51 | / if self.opt.is_none() {
23- 52 | | return None
24- 53 | | }
22+ 60 | / if self.opt.is_none() {
23+ 61 | | return None
24+ 62 | | }
2525 | |_________^ help: replace_it_with: `self.opt?;`
2626
2727error: this block may be rewritten with the `?` operator
28- --> $DIR/question_mark.rs:55 :17
28+ --> $DIR/question_mark.rs:64 :17
2929 |
30- 55 | let _ = if self.opt.is_none() {
30+ 64 | let _ = if self.opt.is_none() {
3131 | _________________^
32- 56 | | return None;
33- 57 | | } else {
34- 58 | | self.opt
35- 59 | | };
32+ 65 | | return None;
33+ 66 | | } else {
34+ 67 | | self.opt
35+ 68 | | };
3636 | |_________^ help: replace_it_with: `Some(self.opt?)`
3737
3838error: this block may be rewritten with the `?` operator
39- --> $DIR/question_mark.rs:72 :9
39+ --> $DIR/question_mark.rs:81 :9
4040 |
41- 72 | / if self.opt.is_none() {
42- 73 | | return None;
43- 74 | | }
41+ 81 | / if self.opt.is_none() {
42+ 82 | | return None;
43+ 83 | | }
4444 | |_________^ help: replace_it_with: `self.opt.as_ref()?;`
4545
4646error: this block may be rewritten with the `?` operator
47- --> $DIR/question_mark.rs:80 :9
47+ --> $DIR/question_mark.rs:89 :9
4848 |
49- 80 | / if self.opt.is_none() {
50- 81 | | return None;
51- 82 | | }
49+ 89 | / if self.opt.is_none() {
50+ 90 | | return None;
51+ 91 | | }
5252 | |_________^ help: replace_it_with: `self.opt.as_ref()?;`
5353
5454error: this block may be rewritten with the `?` operator
55- --> $DIR/question_mark.rs:88 :9
55+ --> $DIR/question_mark.rs:97 :9
5656 |
57- 88 | / if self.opt.is_none() {
58- 89 | | return None;
59- 90 | | }
57+ 97 | / if self.opt.is_none() {
58+ 98 | | return None;
59+ 99 | | }
6060 | |_________^ help: replace_it_with: `self.opt.as_ref()?;`
6161
6262error: aborting due to 7 previous errors
0 commit comments