2023-11-23 13:30:36 +01:00
|
|
|
error: called `map_or(None, Some)` on a `Result` value
|
2023-08-24 21:32:12 +02:00
|
|
|
--> $DIR/result_map_or_into_option.rs:5:13
|
2020-04-03 23:59:52 -07:00
|
|
|
|
|
|
|
|
LL | let _ = opt.map_or(None, Some);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: try using `ok` instead: `opt.ok()`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::result-map-or-into-option` implied by `-D warnings`
|
2023-08-01 14:02:21 +02:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::result_map_or_into_option)]`
|
2020-04-03 23:59:52 -07:00
|
|
|
|
2023-11-20 14:54:43 +01:00
|
|
|
error: called `map_or_else(|_| None, Some)` on a `Result` value
|
|
|
|
--> $DIR/result_map_or_into_option.rs:7:13
|
|
|
|
|
|
|
|
|
LL | let _ = opt.map_or_else(|_| None, Some);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try using `ok` instead: `opt.ok()`
|
|
|
|
|
|
|
|
error: called `map_or_else(|_| None, Some)` on a `Result` value
|
|
|
|
--> $DIR/result_map_or_into_option.rs:10:13
|
|
|
|
|
|
|
|
|
LL | let _ = opt.map_or_else(|_| { None }, Some);
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try using `ok` instead: `opt.ok()`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2020-04-03 23:59:52 -07:00
|
|
|
|