2020-12-06 14:01:03 +00:00
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:16:12
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | if let Pending = Pending::<()> {}
|
|
|
|
| -------^^^^^^^---------------- help: try this: `if Pending::<()>.is_pending()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:18:12
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | if let Ready(_) = Ready(42) {}
|
|
|
|
| -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:20:12
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | if let Ready(_) = Ready(42) {
|
|
|
|
| -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:26:15
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | while let Ready(_) = Ready(42) {}
|
|
|
|
| ----------^^^^^^^^------------ help: try this: `while Ready(42).is_ready()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:28:15
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | while let Pending = Ready(42) {}
|
|
|
|
| ----------^^^^^^^------------ help: try this: `while Ready(42).is_pending()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:30:15
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | while let Pending = Pending::<()> {}
|
|
|
|
| ----------^^^^^^^---------------- help: try this: `while Pending::<()>.is_pending()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:36:5
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | / match Ready(42) {
|
|
|
|
LL | | Ready(_) => true,
|
|
|
|
LL | | Pending => false,
|
|
|
|
LL | | };
|
|
|
|
| |_____^ help: try this: `Ready(42).is_ready()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:41:5
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | / match Pending::<()> {
|
|
|
|
LL | | Ready(_) => false,
|
|
|
|
LL | | Pending => true,
|
|
|
|
LL | | };
|
|
|
|
| |_____^ help: try this: `Pending::<()>.is_pending()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:46:13
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | let _ = match Pending::<()> {
|
|
|
|
| _____________^
|
|
|
|
LL | | Ready(_) => false,
|
|
|
|
LL | | Pending => true,
|
|
|
|
LL | | };
|
|
|
|
| |_____^ help: try this: `Pending::<()>.is_pending()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:52:20
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | let _ = if let Ready(_) = poll { true } else { false };
|
|
|
|
| -------^^^^^^^^------- help: try this: `if poll.is_ready()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:56:20
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | let _ = if let Ready(_) = gen_poll() {
|
|
|
|
| -------^^^^^^^^------------- help: try this: `if gen_poll().is_ready()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:58:19
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | } else if let Pending = gen_poll() {
|
|
|
|
| -------^^^^^^^------------- help: try this: `if gen_poll().is_pending()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:74:12
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | if let Ready(_) = Ready(42) {}
|
|
|
|
| -------^^^^^^^^------------ help: try this: `if Ready(42).is_ready()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:76:12
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | if let Pending = Pending::<()> {}
|
|
|
|
| -------^^^^^^^---------------- help: try this: `if Pending::<()>.is_pending()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:78:15
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | while let Ready(_) = Ready(42) {}
|
|
|
|
| ----------^^^^^^^^------------ help: try this: `while Ready(42).is_ready()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:80:15
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | while let Pending = Pending::<()> {}
|
|
|
|
| ----------^^^^^^^---------------- help: try this: `while Pending::<()>.is_pending()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:82:5
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | / match Ready(42) {
|
|
|
|
LL | | Ready(_) => true,
|
|
|
|
LL | | Pending => false,
|
|
|
|
LL | | };
|
|
|
|
| |_____^ help: try this: `Ready(42).is_ready()`
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2021-10-07 09:21:30 +00:00
|
|
|
--> $DIR/redundant_pattern_matching_poll.rs:87:5
|
2020-12-06 14:01:03 +00:00
|
|
|
|
|
|
|
|
LL | / match Pending::<()> {
|
|
|
|
LL | | Ready(_) => false,
|
|
|
|
LL | | Pending => true,
|
|
|
|
LL | | };
|
|
|
|
| |_____^ help: try this: `Pending::<()>.is_pending()`
|
|
|
|
|
|
|
|
error: aborting due to 18 previous errors
|
|
|
|
|