Skip to content

Commit

Permalink
Auto merge of #7835 - mikerite:unneeded-allow-20211018, r=xFrednet
Browse files Browse the repository at this point in the history
Remove unneeded allow

Remove unneeded allow

changelog: none
bors committed Oct 18, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
2 parents af85240 + 63d7152 commit 389a74b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clippy_lints/src/identity_op.rs
Original file line number Diff line number Diff line change
@@ -66,7 +66,6 @@ fn is_allowed(cx: &LateContext<'_>, cmp: BinOp, left: &Expr<'_>, right: &Expr<'_
&& constant_simple(cx, cx.typeck_results(), left) == Some(Constant::Int(1))
}

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

0 comments on commit 389a74b

Please sign in to comment.