use rustc_span::{sym, SyntaxContext};
declare_clippy_lint! {
- /// **What it does:** Checks for usages of `match` which could be implemented using `map`
+ /// ### What it does
+ /// Checks for usages of `match` which could be implemented using `map`
///
- /// **Why is this bad?** Using the `map` method is clearer and more concise.
- ///
- /// **Known problems:** None.
- ///
- /// **Example:**
+ /// ### Why is this bad?
+ /// Using the `map` method is clearer and more concise.
///
+ /// ### Example
/// ```rust
/// match Some(0) {
/// Some(x) => Some(x + 1),