Skip to content

Commit 7727c30

Browse files
Simplify the borrow_deref_ref lint example
1 parent 4d5d191 commit 7727c30

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

clippy_lints/src/borrow_deref_ref.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,15 @@ declare_clippy_lint! {
2929
///
3030
/// ### Example
3131
/// ```rust
32-
/// fn foo(_x: &str) {}
33-
///
3432
/// let s = &String::new();
3533
///
3634
/// let a: &String = &* s;
37-
/// foo(&*s);
3835
/// ```
3936
///
4037
/// Use instead:
4138
/// ```rust
42-
/// # fn foo(_x: &str) {}
4339
/// # let s = &String::new();
4440
/// let a: &String = s;
45-
/// foo(&**s);
4641
/// ```
4742
#[clippy::version = "1.63.0"]
4843
pub BORROW_DEREF_REF,

0 commit comments

Comments
 (0)