Update help text in inefficient_to_string
Co-Authored-By: Manish Goregaokar <manishsmail@gmail.com>
This commit is contained in:
parent
ffb53e7457
commit
2106a23966
2 changed files with 7 additions and 7 deletions
|
|
@ -24,7 +24,7 @@ pub fn lint<'tcx>(cx: &LateContext<'_, 'tcx>, expr: &hir::Expr, arg: &hir::Expr,
|
|||
&format!("calling `to_string` on `{}`", arg_ty),
|
||||
|db| {
|
||||
db.help(&format!(
|
||||
"`{}` implements `ToString` through the blanket impl, but `{}` specializes `ToString` directly",
|
||||
"`{}` implements `ToString` through a slower blanket impl, but `{}` has a fast specialization of `ToString`",
|
||||
self_ty, deref_self_ty
|
||||
));
|
||||
let mut applicability = Applicability::MachineApplicable;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue