diff options
| author | llogiq <bogusandre@gmail.com> | 2025-07-10 21:27:09 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-10 21:27:09 +0000 |
| commit | df5a0ee919f8c22c88584694a1532e4eb1cd0fca (patch) | |
| tree | 19d160654f08d9604c5f7f3dd3e115333b8cbe2b /tests/rustdoc-js-std/parser-slice-array.js | |
| parent | 4dcaa80651dff62de71cbd334f05810580eb9d48 (diff) | |
| parent | 86a14967f73f4c073e448dbbba34d56c8c94484a (diff) | |
| download | rust-df5a0ee919f8c22c88584694a1532e4eb1cd0fca.tar.gz rust-df5a0ee919f8c22c88584694a1532e4eb1cd0fca.zip | |
or_fun_call: lint method calls inside map_or first arg (#15074)
<strike>blocked on rust-lang/rust-clippy#15073</strike>
Lint method calls inside `map_or` too, so for this, lint will be showed:
```rust
Some(4).map_or("asd".to_string().len() as i32, f);
```
previously it worked only for:
```rust
Some(4).map_or(slow_fun(), f);
```
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2024&gist=bfcda42a6af446e69bc883a8b45eb13c
Sorry for multiple `or_fun_call` PRs.
changelog: [`or_fun_call`]: lint method calls inside map_or first arg
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions
