@@ -9,54 +9,54 @@ error: this block may be rewritten with the `?` operator
9
9
= note: `-D clippy::question-mark` implied by `-D warnings`
10
10
11
11
error: this block may be rewritten with the `?` operator
12
- --> $DIR/question_mark.rs:47 :9
12
+ --> $DIR/question_mark.rs:56 :9
13
13
|
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 | | }
17
17
| |_________^ help: replace_it_with: `(self.opt)?;`
18
18
19
19
error: this block may be rewritten with the `?` operator
20
- --> $DIR/question_mark.rs:51 :9
20
+ --> $DIR/question_mark.rs:60 :9
21
21
|
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 | | }
25
25
| |_________^ help: replace_it_with: `self.opt?;`
26
26
27
27
error: this block may be rewritten with the `?` operator
28
- --> $DIR/question_mark.rs:55 :17
28
+ --> $DIR/question_mark.rs:64 :17
29
29
|
30
- 55 | let _ = if self.opt.is_none() {
30
+ 64 | let _ = if self.opt.is_none() {
31
31
| _________________^
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 | | };
36
36
| |_________^ help: replace_it_with: `Some(self.opt?)`
37
37
38
38
error: this block may be rewritten with the `?` operator
39
- --> $DIR/question_mark.rs:72 :9
39
+ --> $DIR/question_mark.rs:81 :9
40
40
|
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 | | }
44
44
| |_________^ help: replace_it_with: `self.opt.as_ref()?;`
45
45
46
46
error: this block may be rewritten with the `?` operator
47
- --> $DIR/question_mark.rs:80 :9
47
+ --> $DIR/question_mark.rs:89 :9
48
48
|
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 | | }
52
52
| |_________^ help: replace_it_with: `self.opt.as_ref()?;`
53
53
54
54
error: this block may be rewritten with the `?` operator
55
- --> $DIR/question_mark.rs:88 :9
55
+ --> $DIR/question_mark.rs:97 :9
56
56
|
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 | | }
60
60
| |_________^ help: replace_it_with: `self.opt.as_ref()?;`
61
61
62
62
error: aborting due to 7 previous errors
0 commit comments