Skip to content

Commit 647c07f

Browse files
committed
Rename to follow the convention
1 parent ef8454e commit 647c07f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

clippy_lints/src/decimal_bit_mask.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ declare_clippy_lint! {
3232

3333
declare_lint_pass!(DecimalBitMask => [DECIMAL_BIT_MASK]);
3434

35-
fn check_bitwise_binary_expr(cx: &LateContext<'_>, e: &Expr<'_>) {
35+
fn check_bitwise_binary_expr(cx: &LateContext<'_>, expr: &Expr<'_>) {
3636
if let ExprKind::Binary(
3737
Spanned {
3838
node: BinOpKind::BitAnd | BinOpKind::BitOr | BinOpKind::BitXor,
3939
..
4040
},
4141
left,
4242
right,
43-
) = &e.kind
43+
) = &expr.kind
4444
{
4545
for expr in [left, right] {
4646
if let ExprKind::Lit(lit) = &expr.kind
@@ -53,7 +53,7 @@ fn check_bitwise_binary_expr(cx: &LateContext<'_>, e: &Expr<'_>) {
5353
}
5454
}
5555

56-
fn check_bitwise_assign_expr(cx: &LateContext<'_>, e: &Expr<'_>) {
56+
fn check_bitwise_assign_expr(cx: &LateContext<'_>, expr: &Expr<'_>) {
5757
if let ExprKind::AssignOp(
5858
Spanned {
5959
node: AssignOpKind::BitAndAssign | AssignOpKind::BitOrAssign | AssignOpKind::BitXorAssign,
@@ -64,7 +64,7 @@ fn check_bitwise_assign_expr(cx: &LateContext<'_>, e: &Expr<'_>) {
6464
kind: ExprKind::Lit(lit),
6565
..
6666
},
67-
) = &e.kind
67+
) = &expr.kind
6868
&& !is_power_of_twoish(lit)
6969
&& !is_not_decimal_number(cx, lit.span)
7070
{
@@ -95,11 +95,11 @@ fn emit_lint(cx: &LateContext<'_>, span: Span) {
9595
}
9696

9797
impl<'tcx> LateLintPass<'tcx> for DecimalBitMask {
98-
fn check_expr(&mut self, cx: &LateContext<'tcx>, e: &'tcx Expr<'_>) {
99-
if e.span.from_expansion() {
98+
fn check_expr(&mut self, cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>) {
99+
if expr.span.from_expansion() {
100100
return;
101101
}
102-
check_bitwise_binary_expr(cx, e);
103-
check_bitwise_assign_expr(cx, e);
102+
check_bitwise_binary_expr(cx, expr);
103+
check_bitwise_assign_expr(cx, expr);
104104
}
105105
}

0 commit comments

Comments
 (0)