]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: redundant pattern matching, consider using `is_pending()` |
2 | --> $DIR/redundant_pattern_matching_poll.rs:10:12 | |
3 | | | |
4 | LL | if let Pending = Pending::<()> {} | |
5 | | -------^^^^^^^---------------- help: try this: `if Pending::<()>.is_pending()` | |
6 | | | |
7 | = note: `-D clippy::redundant-pattern-matching` implied by `-D warnings` | |
8 | ||
9 | error: redundant pattern matching, consider using `is_ready()` | |
10 | --> $DIR/redundant_pattern_matching_poll.rs:12:12 | |
11 | | | |
12 | LL | if let Ready(_) = Ready(42) {} | |
13 | | -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()` | |
14 | ||
15 | error: redundant pattern matching, consider using `is_ready()` | |
16 | --> $DIR/redundant_pattern_matching_poll.rs:14:12 | |
17 | | | |
18 | LL | if let Ready(_) = Ready(42) { | |
19 | | -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()` | |
20 | ||
21 | error: redundant pattern matching, consider using `is_ready()` | |
22 | --> $DIR/redundant_pattern_matching_poll.rs:20:15 | |
23 | | | |
24 | LL | while let Ready(_) = Ready(42) {} | |
25 | | ----------^^^^^^^^------------ help: try this: `while Ready(42).is_ready()` | |
26 | ||
27 | error: redundant pattern matching, consider using `is_pending()` | |
28 | --> $DIR/redundant_pattern_matching_poll.rs:22:15 | |
29 | | | |
30 | LL | while let Pending = Ready(42) {} | |
31 | | ----------^^^^^^^------------ help: try this: `while Ready(42).is_pending()` | |
32 | ||
33 | error: redundant pattern matching, consider using `is_pending()` | |
34 | --> $DIR/redundant_pattern_matching_poll.rs:24:15 | |
35 | | | |
36 | LL | while let Pending = Pending::<()> {} | |
37 | | ----------^^^^^^^---------------- help: try this: `while Pending::<()>.is_pending()` | |
38 | ||
39 | error: redundant pattern matching, consider using `is_ready()` | |
40 | --> $DIR/redundant_pattern_matching_poll.rs:30:5 | |
41 | | | |
42 | LL | / match Ready(42) { | |
43 | LL | | Ready(_) => true, | |
44 | LL | | Pending => false, | |
45 | LL | | }; | |
46 | | |_____^ help: try this: `Ready(42).is_ready()` | |
47 | ||
48 | error: redundant pattern matching, consider using `is_pending()` | |
49 | --> $DIR/redundant_pattern_matching_poll.rs:35:5 | |
50 | | | |
51 | LL | / match Pending::<()> { | |
52 | LL | | Ready(_) => false, | |
53 | LL | | Pending => true, | |
54 | LL | | }; | |
55 | | |_____^ help: try this: `Pending::<()>.is_pending()` | |
56 | ||
57 | error: redundant pattern matching, consider using `is_pending()` | |
58 | --> $DIR/redundant_pattern_matching_poll.rs:40:13 | |
59 | | | |
60 | LL | let _ = match Pending::<()> { | |
61 | | _____________^ | |
62 | LL | | Ready(_) => false, | |
63 | LL | | Pending => true, | |
64 | LL | | }; | |
65 | | |_____^ help: try this: `Pending::<()>.is_pending()` | |
66 | ||
67 | error: redundant pattern matching, consider using `is_ready()` | |
68 | --> $DIR/redundant_pattern_matching_poll.rs:46:20 | |
69 | | | |
70 | LL | let _ = if let Ready(_) = poll { true } else { false }; | |
71 | | -------^^^^^^^^------- help: try this: `if poll.is_ready()` | |
72 | ||
73 | error: redundant pattern matching, consider using `is_ready()` | |
74 | --> $DIR/redundant_pattern_matching_poll.rs:50:20 | |
75 | | | |
76 | LL | let _ = if let Ready(_) = gen_poll() { | |
77 | | -------^^^^^^^^------------- help: try this: `if gen_poll().is_ready()` | |
78 | ||
79 | error: redundant pattern matching, consider using `is_pending()` | |
80 | --> $DIR/redundant_pattern_matching_poll.rs:52:19 | |
81 | | | |
82 | LL | } else if let Pending = gen_poll() { | |
83 | | -------^^^^^^^------------- help: try this: `if gen_poll().is_pending()` | |
84 | ||
85 | error: redundant pattern matching, consider using `is_ready()` | |
86 | --> $DIR/redundant_pattern_matching_poll.rs:68:12 | |
87 | | | |
88 | LL | if let Ready(_) = Ready(42) {} | |
89 | | -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()` | |
90 | ||
91 | error: redundant pattern matching, consider using `is_pending()` | |
92 | --> $DIR/redundant_pattern_matching_poll.rs:70:12 | |
93 | | | |
94 | LL | if let Pending = Pending::<()> {} | |
95 | | -------^^^^^^^---------------- help: try this: `if Pending::<()>.is_pending()` | |
96 | ||
97 | error: redundant pattern matching, consider using `is_ready()` | |
98 | --> $DIR/redundant_pattern_matching_poll.rs:72:15 | |
99 | | | |
100 | LL | while let Ready(_) = Ready(42) {} | |
101 | | ----------^^^^^^^^------------ help: try this: `while Ready(42).is_ready()` | |
102 | ||
103 | error: redundant pattern matching, consider using `is_pending()` | |
104 | --> $DIR/redundant_pattern_matching_poll.rs:74:15 | |
105 | | | |
106 | LL | while let Pending = Pending::<()> {} | |
107 | | ----------^^^^^^^---------------- help: try this: `while Pending::<()>.is_pending()` | |
108 | ||
109 | error: redundant pattern matching, consider using `is_ready()` | |
110 | --> $DIR/redundant_pattern_matching_poll.rs:76:5 | |
111 | | | |
112 | LL | / match Ready(42) { | |
113 | LL | | Ready(_) => true, | |
114 | LL | | Pending => false, | |
115 | LL | | }; | |
116 | | |_____^ help: try this: `Ready(42).is_ready()` | |
117 | ||
118 | error: redundant pattern matching, consider using `is_pending()` | |
119 | --> $DIR/redundant_pattern_matching_poll.rs:81:5 | |
120 | | | |
121 | LL | / match Pending::<()> { | |
122 | LL | | Ready(_) => false, | |
123 | LL | | Pending => true, | |
124 | LL | | }; | |
125 | | |_____^ help: try this: `Pending::<()>.is_pending()` | |
126 | ||
127 | error: aborting due to 18 previous errors | |
128 |