Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyijun committed Nov 10, 2021
1 parent c8df7d2 commit 888937f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/borrow_deref_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ impl LateLintPass<'_> for BorrowDerefRef {

diag.help(
&format!(
"consider using `{}` if you would like to deref",
"&**".to_owned() + &snippet_opt(cx, deref_expr.span).unwrap(),
"consider using `&**{}` if you would like to deref",
&snippet_opt(cx, deref_expr.span).unwrap(),
)
);

Expand Down

0 comments on commit 888937f

Please sign in to comment.