mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
10 lines
405 B
Text
10 lines
405 B
Text
error: called `map_or(None, Some)` on a `Result` value. This can be done more directly by calling `ok()` instead
|
|
--> $DIR/result_map_or_into_option.rs:5:13
|
|
|
|
|
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`
|
|
|
|
error: aborting due to previous error
|
|
|