---
source: crates/ruff_linter/src/rules/flake8_simplify/mod.rs
---
SIM208 [*] Use `a` instead of `not (not a)`
 --> SIM208.py:1:4
  |
1 | if not (not a):  # SIM208
  |    ^^^^^^^^^^^
2 |     pass
  |
help: Replace with `a`
  |
  - if not (not a):  # SIM208
1 + if a:  # SIM208
2 |     pass
  |

SIM208 [*] Use `a == b` instead of `not (not a == b)`
 --> SIM208.py:4:4
  |
2 |     pass
3 |
4 | if not (not (a == b)):  # SIM208
  |    ^^^^^^^^^^^^^^^^^^
5 |     pass
  |
help: Replace with `a == b`
  |
3 |
  - if not (not (a == b)):  # SIM208
4 + if a == b:  # SIM208
5 |     pass
  |

SIM208 [*] Use `b` instead of `not (not b)`
  --> SIM208.py:16:5
   |
14 |     pass
15 |
16 | a = not not b  # SIM208
   |     ^^^^^^^^^
17 |
18 | f(not not a)  # SIM208
   |
help: Replace with `b`
   |
15 |
   - a = not not b  # SIM208
16 + a = bool(b)  # SIM208
17 |
   |

SIM208 [*] Use `a` instead of `not (not a)`
  --> SIM208.py:18:3
   |
16 | a = not not b  # SIM208
17 |
18 | f(not not a)  # SIM208
   |   ^^^^^^^^^
19 |
20 | if 1 + (not (not a)):  # SIM208
   |
help: Replace with `a`
   |
17 |
   - f(not not a)  # SIM208
18 + f(bool(a))  # SIM208
19 |
   |

SIM208 [*] Use `a` instead of `not (not a)`
  --> SIM208.py:20:9
   |
18 | f(not not a)  # SIM208
19 |
20 | if 1 + (not (not a)):  # SIM208
   |         ^^^^^^^^^^^
21 |     pass
   |
help: Replace with `a`
   |
19 |
   - if 1 + (not (not a)):  # SIM208
20 + if 1 + (bool(a)):  # SIM208
21 |     pass
   |
