2023-12-01 11:21:58 -06:00
|
|
|
error: called `map_or(None, Some)` on a `Result` value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/result_map_or_into_option.rs:5:13
|
2020-04-04 01:59:52 -05:00
|
|
|
|
|
|
|
|
LL | let _ = opt.map_or(None, Some);
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using `ok`: `opt.ok()`
|
2020-04-04 01:59:52 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::result-map-or-into-option` implied by `-D warnings`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::result_map_or_into_option)]`
|
2020-04-04 01:59:52 -05:00
|
|
|
|
2023-12-01 11:21:58 -06:00
|
|
|
error: called `map_or_else(|_| None, Some)` on a `Result` value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/result_map_or_into_option.rs:7:13
|
2023-12-01 11:21:58 -06:00
|
|
|
|
|
|
|
|
LL | let _ = opt.map_or_else(|_| None, Some);
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `ok`: `opt.ok()`
|
2023-12-01 11:21:58 -06:00
|
|
|
|
|
|
|
error: called `map_or_else(|_| None, Some)` on a `Result` value
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/result_map_or_into_option.rs:10:13
|
2023-12-01 11:21:58 -06:00
|
|
|
|
|
|
|
|
LL | let _ = opt.map_or_else(|_| { None }, Some);
|
2024-01-25 12:17:36 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `ok`: `opt.ok()`
|
2023-12-01 11:21:58 -06:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2020-04-04 01:59:52 -05:00
|
|
|
|