Skip to content

Commit

Permalink
refactor: rename method that checks of division of logs
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagoarrais committed Jun 12, 2020
1 parent 9601b8f commit dce242c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/floating_point_arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ fn are_same_base_logs(cx: &LateContext<'_, '_>, expr_a: &Expr<'_>, expr_b: &Expr
false
}

fn check_logbase(cx: &LateContext<'_, '_>, expr: &Expr<'_>) {
fn check_log_division(cx: &LateContext<'_, '_>, expr: &Expr<'_>) {
// check if expression of the form x.logN() / y.logN()
if_chain! {
if let ExprKind::Binary(
Expand Down Expand Up @@ -685,7 +685,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for FloatingPointArithmetic {
check_expm1(cx, expr);
check_mul_add(cx, expr);
check_custom_abs(cx, expr);
check_logbase(cx, expr);
check_log_division(cx, expr);
check_radians(cx, expr);
}
}
Expand Down

0 comments on commit dce242c

Please sign in to comment.