2020-04-04 06:59:52 +00:00
|
|
|
error: called `map_or(None, Some)` on a `Result` value. This can be done more directly by calling `ok()` instead
|
2023-08-24 19:32:12 +00:00
|
|
|
--> $DIR/result_map_or_into_option.rs:5:13
|
2020-04-04 06:59:52 +00: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 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::result_map_or_into_option)]`
|
2020-04-04 06:59:52 +00:00
|
|
|
|
2023-11-21 17:08:42 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-04-04 06:59:52 +00:00
|
|
|
|