| error: manual implementation of `Option::zip` |
| --> tests/ui/manual_option_zip.rs:10:13 |
| | |
| LL | let _ = a.and_then(|a| b.map(|b| (a, b))); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `a.zip(b)` |
| | |
| = note: `-D clippy::manual-option-zip` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::manual_option_zip)]` |
| |
| error: manual implementation of `Option::zip` |
| --> tests/ui/manual_option_zip.rs:16:13 |
| | |
| LL | let _ = a.and_then(|a| b.map(|b| (a, b))); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `a.zip(b)` |
| |
| error: manual implementation of `Option::zip` |
| --> tests/ui/manual_option_zip.rs:21:13 |
| | |
| LL | let _ = None::<i32>.and_then(|a| b.map(|b| (a, b))); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `None::<i32>.zip(b)` |
| |
| error: manual implementation of `Option::zip` |
| --> tests/ui/manual_option_zip.rs:26:13 |
| | |
| LL | let _ = a.and_then(|a| get_option().map(|b| (a, b))); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `a.zip(get_option())` |
| |
| error: manual implementation of `Option::zip` |
| --> tests/ui/manual_option_zip.rs:32:13 |
| | |
| LL | let _ = a.and_then(|a| b.map(|b| (b, a))); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `b.zip(a)` |
| |
| error: manual implementation of `Option::zip` |
| --> tests/ui/manual_option_zip.rs:39:13 |
| | |
| LL | let _ = a.and_then(|a| { b.map(|b| (a, b)) }); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `a.zip(b)` |
| |
| error: manual implementation of `Option::zip` |
| --> tests/ui/manual_option_zip.rs:42:13 |
| | |
| LL | let _ = a.and_then(|a| b.map(|b| { (a, b) })); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `a.zip(b)` |
| |
| error: manual implementation of `Option::zip` |
| --> tests/ui/manual_option_zip.rs:45:13 |
| | |
| LL | let _ = a.and_then(|a| { b.map(|b| { (a, b) }) }); |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `a.zip(b)` |
| |
| error: aborting due to 8 previous errors |
| |