Skip to content

Commit a513173

Browse files
committed
cleaner
1 parent 736158a commit a513173

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/borrow_deref_ref.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ impl LateLintPass<'_> for BorrowDerefRef {
103103

104104
diag.help(
105105
&format!(
106-
"consider using `{}` if you would like to deref",
107-
"&**".to_owned() + &snippet_opt(cx, deref_expr.span).unwrap(),
106+
"consider using `&**{}` if you would like to deref",
107+
&snippet_opt(cx, deref_expr.span).unwrap(),
108108
)
109109
);
110110

0 commit comments

Comments
 (0)