Skip to content

Commit 5ef3fc2

Browse files
committed
Add check for u128 max value
1 parent ad9b9a8 commit 5ef3fc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/xor_used_as_pow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl EarlyLintPass for XorUsedAsPow {
4141
if let LitKind::Int(rhs, _) = lit.node;
4242
then {
4343
if lhs == 2 {
44-
if rhs == 8 || rhs == 16 || rhs == 32 || rhs == 64 {
44+
if rhs == 8 || rhs == 16 || rhs == 32 || rhs == 64 || rhs == 128 {
4545
span_lint_and_sugg(
4646
cx,
4747
XOR_USED_AS_POW,

0 commit comments

Comments
 (0)