Skip to content

Commit db35e30

Browse files
committed
fix typo
1 parent f2aed50 commit db35e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/operators/numeric_arithmetic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ impl Context {
4343
_ => (),
4444
}
4545

46-
let (_, r_ty) = (cx.typeck_results().expr_ty(l), cx.typeck_results().expr_ty(r));
47-
if r_ty.peel_refs().is_floating_point() && r_ty.peel_refs().is_floating_point() {
46+
let (l_ty, r_ty) = (cx.typeck_results().expr_ty(l), cx.typeck_results().expr_ty(r));
47+
if l_ty.peel_refs().is_floating_point() && r_ty.peel_refs().is_floating_point() {
4848
span_lint(cx, FLOAT_ARITHMETIC, expr.span, "floating-point arithmetic detected");
4949
self.expr_id = Some(expr.hir_id);
5050
}

0 commit comments

Comments
 (0)