use rustc_span::sym;
declare_clippy_lint! {
- /// **What it does:** Checks for boolean expressions that can be written more
+ /// ### What it does
+ /// Checks for boolean expressions that can be written more
/// concisely.
///
- /// **Why is this bad?** Readability of boolean expressions suffers from
+ /// ### Why is this bad?
+ /// Readability of boolean expressions suffers from
/// unnecessary duplication.
///
- /// **Known problems:** Ignores short circuiting behavior of `||` and
+ /// ### Known problems
+ /// Ignores short circuiting behavior of `||` and
/// `&&`. Ignores `|`, `&` and `^`.
///
- /// **Example:**
+ /// ### Example
/// ```ignore
/// if a && true // should be: if a
/// if !(a == b) // should be: if a != b
}
declare_clippy_lint! {
- /// **What it does:** Checks for boolean expressions that contain terminals that
+ /// ### What it does
+ /// Checks for boolean expressions that contain terminals that
/// can be eliminated.
///
- /// **Why is this bad?** This is most likely a logic bug.
+ /// ### Why is this bad?
+ /// This is most likely a logic bug.
///
- /// **Known problems:** Ignores short circuiting behavior.
+ /// ### Known problems
+ /// Ignores short circuiting behavior.
///
- /// **Example:**
+ /// ### Example
/// ```ignore
/// if a && b || a { ... }
/// ```