We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9260f6f commit 3e62f7dCopy full SHA for 3e62f7d
clippy_lints/src/borrow_deref_ref.rs
@@ -14,10 +14,7 @@ declare_clippy_lint! {
14
/// Checks for `&*(&T)`.
15
///
16
/// ### Why is this bad?
17
- /// When people deref on an immutable reference `&T`, they may expect return `&U`.
18
- /// Accutually `&* (&T)` is still `&T`.
19
- /// if you want to deref explicitly, `&** (&T)` is what you need.
20
- /// If you want to reborrow, `&T` is enough (`&T` is Copy).
+ /// Dereferencing and then borrowing a reference value has no effect in most cases.
21
22
/// ### Known problems
23
/// false negative on such code:
0 commit comments