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
This commit is contained in:
bors 2022-08-16 00:19:21 +00:00
commit a427b12803

View File

@ -29,20 +29,15 @@ declare_clippy_lint! {
///
/// ### Example
/// ```rust
/// fn foo(_x: &str) {}
///
/// let s = &String::new();
///
/// let a: &String = &* s;
/// foo(&*s);
/// ```
///
/// Use instead:
/// ```rust
/// # fn foo(_x: &str) {}
/// # let s = &String::new();
/// let a: &String = s;
/// foo(&**s);
/// ```
#[clippy::version = "1.63.0"]
pub BORROW_DEREF_REF,