ruff/crates/ruff_linter
qdegraaf 34480c0e4d
chore: remove redundant Expr::Call checks (#7678)
## Summary

As we bind the `ast::ExprCall` in the big `match expr` in
`expression.rs`
```rust
Expr::Call(
    call @ ast::ExprCall {
     ...
```

There is no need for additional `let/if let` checks on `ExprCall` in
downstream rules. Found a few older rules which still did this while
working on something else. This PR removes the redundant check from
these rules.

## Test Plan

`cargo test`
2023-09-27 11:36:20 -04:00
..
resources/test Allow named expressions in __all__ assignments (#7673) 2023-09-27 00:36:55 -04:00
src chore: remove redundant Expr::Call checks (#7678) 2023-09-27 11:36:20 -04:00
Cargo.toml Implement our own small-integer optimization (#7584) 2023-09-25 15:13:21 +00:00