Skip to content

Commit 82dbeb3

Browse files
Update help text in inefficient_to_string
Co-Authored-By: Manish Goregaokar <[email protected]>
1 parent ffb53e7 commit 82dbeb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/inefficient_to_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn lint<'tcx>(cx: &LateContext<'_, 'tcx>, expr: &hir::Expr, arg: &hir::Expr,
2424
&format!("calling `to_string` on `{}`", arg_ty),
2525
|db| {
2626
db.help(&format!(
27-
"`{}` implements `ToString` through the blanket impl, but `{}` specializes `ToString` directly",
27+
"`{}` implements `ToString` through a slower blanket impl, but `{}` has a fast specialization of `ToString`",
2828
self_ty, deref_self_ty
2929
));
3030
let mut applicability = Applicability::MachineApplicable;

0 commit comments

Comments
 (0)