Use range: _ in lieu of range: _range (#6296)

## Summary

`range: _range` is slightly inconvenient because you can't use it
multiple times within a single match, unlike `_`.
This commit is contained in:
Charlie Marsh 2023-08-02 22:11:13 -04:00 committed by GitHub
parent 9e2bbf4beb
commit 9f3567dea6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 249 additions and 455 deletions

View file

@ -223,7 +223,7 @@ pub fn is_immutable_annotation(expr: &Expr, semantic: &SemanticModel) -> bool {
left,
op: Operator::BitOr,
right,
range: _range,
range: _,
}) => is_immutable_annotation(left, semantic) && is_immutable_annotation(right, semantic),
Expr::Constant(ast::ExprConstant {
value: Constant::None,