Skip to content

Commit a73e5c3

Browse files
committed
fixed tests
1 parent b7848d9 commit a73e5c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clippy_lints/src/casts/cast_sign_loss.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,8 @@ fn should_lint<'cx>(cx: &LateContext<'cx>, cast_op: &Expr<'_>, cast_from: Ty<'cx
7676
true
7777
},
7878

79-
(false, true) => false, // Don't lint float -> int casts as they have different semantics
80-
81-
(_, _) => false,
79+
// Don't lint float -> int casts as they have different semantics
80+
_ => false,
8281
}
8382
}
8483

0 commit comments

Comments
 (0)