2021-04-22 04:31:13 -05:00
|
|
|
error: redundant pattern matching, consider using `is_ok()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:15:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = m.lock() {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^----------- help: try: `if m.lock().is_ok()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
2022-09-22 11:04:22 -05:00
|
|
|
= note: `-D clippy::redundant-pattern-matching` implied by `-D warnings`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_err()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:16:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Err(_) = Err::<(), _>(m.lock().unwrap().0) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^------------------------------------ help: try: `if Err::<(), _>(m.lock().unwrap().0).is_err()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ok()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:19:16
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = Ok::<_, std::sync::MutexGuard<()>>(()) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^----------------------------------------- help: try: `if Ok::<_, std::sync::MutexGuard<()>>(()).is_ok()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ok()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:21:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = Ok::<_, std::sync::MutexGuard<()>>(()) {
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^----------------------------------------- help: try: `if Ok::<_, std::sync::MutexGuard<()>>(()).is_ok()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ok()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:24:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = Ok::<_, std::sync::MutexGuard<()>>(()) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^----------------------------------------- help: try: `if Ok::<_, std::sync::MutexGuard<()>>(()).is_ok()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_err()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:25:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Err(_) = Err::<std::sync::MutexGuard<()>, _>(()) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^------------------------------------------ help: try: `if Err::<std::sync::MutexGuard<()>, _>(()).is_err()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ok()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:27:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ok(_) = Ok::<_, ()>(String::new()) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^----------------------------- help: try: `if Ok::<_, ()>(String::new()).is_ok()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_err()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:28:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Err(_) = Err::<(), _>((String::new(), ())) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^------------------------------------ help: try: `if Err::<(), _>((String::new(), ())).is_err()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_some()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:31:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Some(_) = Some(m.lock()) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^----------------- help: try: `if Some(m.lock()).is_some()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_some()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:32:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Some(_) = Some(m.lock().unwrap().0) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^---------------------------- help: try: `if Some(m.lock().unwrap().0).is_some()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_none()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:35:16
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let None = None::<std::sync::MutexGuard<()>> {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^------------------------------------ help: try: `if None::<std::sync::MutexGuard<()>>.is_none()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_none()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:37:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let None = None::<std::sync::MutexGuard<()>> {
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^------------------------------------ help: try: `if None::<std::sync::MutexGuard<()>>.is_none()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_none()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:41:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let None = None::<std::sync::MutexGuard<()>> {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^------------------------------------ help: try: `if None::<std::sync::MutexGuard<()>>.is_none()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_some()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:43:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Some(_) = Some(String::new()) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^---------------------- help: try: `if Some(String::new()).is_some()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_some()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:44:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Some(_) = Some((String::new(), ())) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^---------------------------- help: try: `if Some((String::new(), ())).is_some()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:47:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ready(_) = Ready(m.lock()) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^^------------------ help: try: `if Ready(m.lock()).is_ready()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:48:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ready(_) = Ready(m.lock().unwrap().0) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^^----------------------------- help: try: `if Ready(m.lock().unwrap().0).is_ready()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:51:16
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Pending = Pending::<std::sync::MutexGuard<()>> {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^--------------------------------------- help: try: `if Pending::<std::sync::MutexGuard<()>>.is_pending()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:53:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Pending = Pending::<std::sync::MutexGuard<()>> {
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^--------------------------------------- help: try: `if Pending::<std::sync::MutexGuard<()>>.is_pending()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
= note: this will change drop order of the result, as well as all temporaries
|
|
|
|
= note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
|
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_pending()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:57:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Pending = Pending::<std::sync::MutexGuard<()>> {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^--------------------------------------- help: try: `if Pending::<std::sync::MutexGuard<()>>.is_pending()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:59:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ready(_) = Ready(String::new()) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^^----------------------- help: try: `if Ready(String::new()).is_ready()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: redundant pattern matching, consider using `is_ready()`
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_pattern_matching_drop_order.rs:60:12
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
|
LL | if let Ready(_) = Ready((String::new(), ())) {}
|
2023-07-01 06:08:01 -05:00
|
|
|
| -------^^^^^^^^----------------------------- help: try: `if Ready((String::new(), ())).is_ready()`
|
2021-04-22 04:31:13 -05:00
|
|
|
|
|
|
|
error: aborting due to 22 previous errors
|
|
|
|
|