We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d5d191 commit 7727c30Copy full SHA for 7727c30
clippy_lints/src/borrow_deref_ref.rs
@@ -29,20 +29,15 @@ declare_clippy_lint! {
29
///
30
/// ### Example
31
/// ```rust
32
- /// fn foo(_x: &str) {}
33
- ///
34
/// let s = &String::new();
35
36
/// let a: &String = &* s;
37
- /// foo(&*s);
38
/// ```
39
40
/// Use instead:
41
42
- /// # fn foo(_x: &str) {}
43
/// # let s = &String::new();
44
/// let a: &String = s;
45
- /// foo(&**s);
46
47
#[clippy::version = "1.63.0"]
48
pub BORROW_DEREF_REF,
0 commit comments