We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad9b9a8 commit 5ef3fc2Copy full SHA for 5ef3fc2
clippy_lints/src/xor_used_as_pow.rs
@@ -41,7 +41,7 @@ impl EarlyLintPass for XorUsedAsPow {
41
if let LitKind::Int(rhs, _) = lit.node;
42
then {
43
if lhs == 2 {
44
- if rhs == 8 || rhs == 16 || rhs == 32 || rhs == 64 {
+ if rhs == 8 || rhs == 16 || rhs == 32 || rhs == 64 || rhs == 128 {
45
span_lint_and_sugg(
46
cx,
47
XOR_USED_AS_POW,
0 commit comments