summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/result_map_or_into_option.stderr
blob: 9396ea4c064efae88e23d2e5c7b18f0bb84a6f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
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`
   = help: to override `-D warnings` add `#[allow(clippy::result_map_or_into_option)]`

error: aborting due to previous error