Skip to content

Commit dce242c

Browse files
committed
refactor: rename method that checks of division of logs
1 parent 9601b8f commit dce242c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/floating_point_arithmetic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ fn are_same_base_logs(cx: &LateContext<'_, '_>, expr_a: &Expr<'_>, expr_b: &Expr
590590
false
591591
}
592592

593-
fn check_logbase(cx: &LateContext<'_, '_>, expr: &Expr<'_>) {
593+
fn check_log_division(cx: &LateContext<'_, '_>, expr: &Expr<'_>) {
594594
// check if expression of the form x.logN() / y.logN()
595595
if_chain! {
596596
if let ExprKind::Binary(
@@ -685,7 +685,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for FloatingPointArithmetic {
685685
check_expm1(cx, expr);
686686
check_mul_add(cx, expr);
687687
check_custom_abs(cx, expr);
688-
check_logbase(cx, expr);
688+
check_log_division(cx, expr);
689689
check_radians(cx, expr);
690690
}
691691
}

0 commit comments

Comments
 (0)