Skip to content

Commit fff3573

Browse files
author
Michael Recachinas
committed
Remove old return-value
1 parent 21e9a12 commit fff3573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/int_plus_one.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl IntPlusOne {
5959
false
6060
}
6161

62-
fn check_binop(&self, cx: &EarlyContext, block: &Expr, binop: BinOpKind, lhs: &Expr, rhs: &Expr) -> Option<(bool, Option<String>)> {
62+
fn check_binop(&self, cx: &EarlyContext, block: &Expr, binop: BinOpKind, lhs: &Expr, rhs: &Expr) {
6363
match (binop, &lhs.node, &rhs.node) {
6464
// case where `x - 1 >= ...` or `-1 + x >= ...`
6565
(BinOpKind::Ge, &ExprKind::Binary(ref lhskind, ref lhslhs, ref lhsrhs), _) => {

0 commit comments

Comments
 (0)