Skip to content

Commit a427b12

Browse files
committed
Auto merge of #9328 - stanislav-tkach:borrow_deref_ref-remove-extra-deref-from-example, r=giraffate
Remove extra dereference from the borrow_deref_ref lint example I don't think such minor change should be mentioned in the changelog. changelog: none
2 parents 0fc95e8 + 7727c30 commit a427b12

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

clippy_lints/src/borrow_deref_ref.rs

-5
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)