diff options
| author | Ada Alakbarova <ada.alakbarova@proton.me> | 2025-08-23 13:54:22 +0200 |
|---|---|---|
| committer | Ada Alakbarova <ada.alakbarova@proton.me> | 2025-08-24 12:45:04 +0200 |
| commit | 852e552be4753043644294ed5cc71daec0f8eedd (patch) | |
| tree | d3084ebc77e791b484528a73a2464afabcc1f218 /tests/rustdoc-js-std/parser-errors.js | |
| parent | 5f80080bd86aac4bcba2e62a8dc1d819e903790f (diff) | |
| download | rust-852e552be4753043644294ed5cc71daec0f8eedd.tar.gz rust-852e552be4753043644294ed5cc71daec0f8eedd.zip | |
get rid of confusing nested `map_or`s
Their default branches are even the same, which means that one of the `map_or`s could've been replaced with an `and_then`, but since we have access to let-chains, why not use that Additionally: - use `with_source_text` to avoid constructing a `SourceText` object - use `BytePos::from_usize` to avoid `allow`ing the lint
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions
