mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
b97d29acb7
fix: support `map_or` for `or_fun_call` lint fixes https://github.com/rust-lang/rust-clippy/issues/8993 The methods defined in `KNOW_TYPES`, except for `map_or`, accepts only one argument, so the matching `if let [arg] = args` works only for these methods. This PR adds `rest_arg` argument to `check_general_case` method and handling of cases with two arguments to support `map_or`. changelog: `or_fun_call` support `map_or` * add `rest_arg` to pass second argument from `map_or(U, F)` * extract some procedures into closure |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |