diff options
Diffstat (limited to 'src/tools/clippy/tests/ui/needless_bool/fixable.fixed')
| -rw-r--r-- | src/tools/clippy/tests/ui/needless_bool/fixable.fixed | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/needless_bool/fixable.fixed b/src/tools/clippy/tests/ui/needless_bool/fixable.fixed index f860852e7b7..bf1911881c8 100644 --- a/src/tools/clippy/tests/ui/needless_bool/fixable.fixed +++ b/src/tools/clippy/tests/ui/needless_bool/fixable.fixed @@ -63,6 +63,13 @@ fn main() { needless_bool2(x); needless_bool3(x); needless_bool_condition(); + + if a == b { + true + } else { + // Do not lint as this comment might be important + false + }; } fn bool_ret3(x: bool) -> bool { |
