We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7996da commit 5515566Copy full SHA for 5515566
clippy_lints/src/manual_is_power_of_two.rs
@@ -13,7 +13,7 @@ declare_clippy_lint! {
13
/// Checks for expressions like `x.count_ones() == 1` or `x & (x - 1) == 0` which are manual
14
/// reimplementations of `x.is_power_of_two()``
15
/// ### Why is this bad?
16
- /// It's simpler and clearer
+ /// Manual reimplementations of `is_power_of_two` increase code complexity for little benefit.
17
/// ### Example
18
/// ```no_run
19
/// let x: u32 = 1;
0 commit comments