2023-11-24 10:57:13 -06:00
|
|
|
error: called `map_or(Err(_), Ok)` on an `Option` value
|
|
|
|
--> $DIR/option_map_or_err_ok.rs:5:13
|
|
|
|
|
|
|
|
|
LL | let _ = x.map_or(Err("a"), Ok);
|
2024-01-18 11:17:53 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ help: consider using `ok_or`: `x.ok_or("a")`
|
2023-11-24 10:57:13 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::option-map-or-err-ok` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::option_map_or_err_ok)]`
|
|
|
|
|
2023-12-01 11:06:03 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-11-24 10:57:13 -06:00
|
|
|
|