Skip to content

Commit 389a74b

Browse files
committed
Auto merge of #7835 - mikerite:unneeded-allow-20211018, r=xFrednet
Remove unneeded allow Remove unneeded allow changelog: none
2 parents af85240 + 63d7152 commit 389a74b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clippy_lints/src/identity_op.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ fn is_allowed(cx: &LateContext<'_>, cmp: BinOp, left: &Expr<'_>, right: &Expr<'_
6666
&& constant_simple(cx, cx.typeck_results(), left) == Some(Constant::Int(1))
6767
}
6868

69-
#[allow(clippy::cast_possible_wrap)]
7069
fn check(cx: &LateContext<'_>, e: &Expr<'_>, m: i8, span: Span, arg: Span) {
7170
if let Some(Constant::Int(v)) = constant_simple(cx, cx.typeck_results(), e) {
7271
let check = match *cx.typeck_results().expr_ty(e).kind() {

0 commit comments

Comments
 (0)