Skip to content

Commit

Permalink
Remove unneeded allow
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wright committed Oct 18, 2021
1 parent af85240 commit 63d7152
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion clippy_lints/src/identity_op.rs
Expand Up @@ -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() {
Expand Down

0 comments on commit 63d7152

Please sign in to comment.