chore: add suspicious_xor_user_as_pow clippy correctness lint (#973)
Some checks are pending
CI / Checks [macos] (push) Blocked by required conditions
CI / Check formatting (push) Waiting to run
CI / Check typos (push) Waiting to run
CI / Checks [linux] (push) Blocked by required conditions
CI / Checks [windows] (push) Blocked by required conditions
CI / Fuzzing (push) Blocked by required conditions
CI / Web Client (push) Blocked by required conditions
CI / FFI (push) Blocked by required conditions
CI / Success (push) Blocked by required conditions
Coverage / Coverage Report (push) Waiting to run
Release crates / Open release PR (push) Waiting to run
Release crates / Release crates (push) Waiting to run

From the lint
[docs](https://rust-lang.github.io/rust-clippy/stable/index.html#suspicious_xor_used_as_pow):
> Warns for a Bitwise XOR (^) operator being probably confused as a
powering. It will not trigger if any of the numbers are not in decimal.
It’s most probably a typo and may lead to unexpected behaviours.
This commit is contained in:
Alex Yusiuk 2025-09-10 16:04:12 +03:00 committed by GitHub
parent 898df8c0fa
commit a8b6fb1d74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,6 +113,7 @@ precedence_bits = "warn"
rc_mutex = "warn"
same_name_method = "warn"
string_slice = "warn"
suspicious_xor_used_as_pow = "warn"
unused_result_ok = "warn"
# == Style, readability == #