diff options
| author | Nick Torres <nickrtorres@icloud.com> | 2020-04-03 23:59:52 -0700 |
|---|---|---|
| committer | Nick Torres <nickrtorres@icloud.com> | 2020-04-04 03:17:13 -0700 |
| commit | 91d8a804d34b44a414b02ea5eba5305573748fff (patch) | |
| tree | 908265340c42d09c451b1baa5a42e455aef8074c /src/rustllvm/CoverageMappingWrapper.cpp | |
| parent | 7907abea272bbf97812683ce03a1ab9c22f0557b (diff) | |
| download | rust-91d8a804d34b44a414b02ea5eba5305573748fff.tar.gz rust-91d8a804d34b44a414b02ea5eba5305573748fff.zip | |
result_map_or_into_option: add lint to catch manually adpating Result -> Option
Result<T, E> has an `ok()` method that adapts a Result<T,E> into an Option<T>. It's possible to get around this adapter by writing Result<T,E>.map_or(None, Some). This lint is implemented as a new variant of the existing [`option_map_none` lint](https://github.com/rust-lang/rust-clippy/pull/2128)
Diffstat (limited to 'src/rustllvm/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
