use rustc_span::{symbol::sym, Span};
declare_clippy_lint! {
- /// **What it does:** Checks for explicit `deref()` or `deref_mut()` method calls.
+ /// ### What it does
+ /// Checks for explicit `deref()` or `deref_mut()` method calls.
///
- /// **Why is this bad?** Dereferencing by `&*x` or `&mut *x` is clearer and more concise,
+ /// ### Why is this bad?
+ /// Dereferencing by `&*x` or `&mut *x` is clearer and more concise,
/// when not part of a method chain.
///
- /// **Example:**
+ /// ### Example
/// ```rust
/// use std::ops::Deref;
/// let a: &mut String = &mut String::from("foo");
| ExprKind::If(..)
| ExprKind::Loop(..)
| ExprKind::Match(..)
+ | ExprKind::Let(..)
| ExprKind::Closure(..)
| ExprKind::Block(..)
| ExprKind::Assign(..)