Skip to content

Commit a8b6fb1

Browse files
chore: add suspicious_xor_user_as_pow clippy correctness lint (#973)
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.
1 parent 898df8c commit a8b6fb1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ precedence_bits = "warn"
113113
rc_mutex = "warn"
114114
same_name_method = "warn"
115115
string_slice = "warn"
116+
suspicious_xor_used_as_pow = "warn"
116117
unused_result_ok = "warn"
117118

118119
# == Style, readability == #

0 commit comments

Comments
 (0)