We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af85240 + 63d7152 commit 389a74bCopy full SHA for 389a74b
clippy_lints/src/identity_op.rs
@@ -66,7 +66,6 @@ fn is_allowed(cx: &LateContext<'_>, cmp: BinOp, left: &Expr<'_>, right: &Expr<'_
66
&& constant_simple(cx, cx.typeck_results(), left) == Some(Constant::Int(1))
67
}
68
69
-#[allow(clippy::cast_possible_wrap)]
70
fn check(cx: &LateContext<'_>, e: &Expr<'_>, m: i8, span: Span, arg: Span) {
71
if let Some(Constant::Int(v)) = constant_simple(cx, cx.typeck_results(), e) {
72
let check = match *cx.typeck_results().expr_ty(e).kind() {
0 commit comments